Questions tagged [proxy-classes]

A proxy class is a class functioning as an interface to another class or a service. Proxy classes are implementation of Proxy design pattern. These classes help using large objects or other resources that are expensive or impossible to duplicate.

342 questions
1
vote
1 answer

Not able to get exact class name

I am not able to get exact className My code is : venue.getClass.getName(); It's giving output like: com.venue.Venue_java_assist17_ I've to get output like exact classname: com.venue.Venue
Naresh
  • 333
  • 1
  • 2
  • 9
1
vote
1 answer

How to use automatically generated proxy class?

I'd like to use a web service from a database to gather informations. Right now, I implemented to web service, turned it into a proxy class via wsdl.exe but I'm slightly irritated by the outcome. The normal way to call that class is new object ->…
MeepMania
  • 103
  • 2
  • 13
1
vote
1 answer

How can I ensure that NHibernate creates a IList proxy?

I have a property on my domain object which is exposed as this: public virtual IEnumerable WorkPosts { get { return sheetPosts; } private set { Guard.AssertAssignableFrom(value, typeof…
Marius
  • 9,208
  • 8
  • 50
  • 73
1
vote
1 answer

Proxy class that isn't yet defined

Consider a registry with a dict-like interface. Each key is a string name and each value is a class. Using it in this order works: registry['foo'] = FooClass cls = registry['foo'] instance = cls But in this order it wouldn't of course: cls =…
jpic
  • 32,891
  • 5
  • 112
  • 113
1
vote
0 answers

Return Object Null datasnap delphi XE2 and consuming in java Android

When I do not want to return any object and return nil on the server, the proxy classes generated an exception that could not convert on TJSONNull TJSONObject .. is this normal? what can I do to return null or tjsonnulll? function…
1
vote
1 answer

Auto-generated proxy class doesn't match service contract

I am using Visual Studio 2012 to auto generate a proxy class to a WCF service. In the service contract, one of the methods, GetActiveSessions(), is defined as returning a Dictionary, but here's how the property appears in my proxy…
Nathan Friend
  • 12,155
  • 10
  • 75
  • 125
1
vote
3 answers

Generating interface implementation at runtime

I would like to ask is there a library which allows to generate implementation of interface at runtime with some additional features illustrated below. Let's say I have interface like that: interface ICustomer { string Name {get;set;} string…
user2542183
  • 53
  • 2
  • 6
1
vote
0 answers

Setting @Proxy(lazy = false) for reference entities

Is it a right approach to set @Proxy(lazy = false) for reference entities, which are read-only and are in eternal L2-cache? Will there be any performance issues in doing so?
Shyam Kumar Sundarakumar
  • 5,649
  • 13
  • 42
  • 69
1
vote
1 answer

Proxy pattern - Loading into memory

I am looking at a code sample that explains the proxy pattern. Here is the code: /** * Proxy */ public class ImageProxy implements Image { /** * Private Proxy data */ private String imageFilePath; /** * Reference to RealSubject */ private…
yrazlik
  • 10,411
  • 33
  • 99
  • 165
1
vote
1 answer

Django model polymorphism, using proxy inheritance

This might sound like a duplicate, but I don't think it is. I need to do something a bit similar to what the asker did there : django model polymorphism with proxy inheritance My parent needs to implement a set of methods, let's call them MethodA(),…
1
vote
1 answer

How to join AX tables using .net interop?

I am trying to create a utility for AX 2012 in visual studio using .net interop to X++ and proxy classes, I've added necessary tables in my project, I can access tables individually and can loop them through .next() method, but I want to join these…
alphaprolix
  • 601
  • 2
  • 10
  • 25
1
vote
1 answer

What is Return type of method invocation?

I am using Proxy Pattern in Java (InvocationHandler), to implement a lock manager for a remote object, in the proxy class (which implements InvocationHandler). I am calling the remote object (here : flighRMConnection) : if…
Arian
  • 7,397
  • 21
  • 89
  • 177
1
vote
1 answer

How to generate two proxy classes using the same interface in swig

I have some code like below: class SingleValue { public: SingleValue() {} ~SingleValue() {} const std::string& getValue()const { return m_nSingleValue; } private: int m_nSingleValue; }; typedef SingleValue…
Sonny
  • 182
  • 1
  • 1
  • 9
1
vote
1 answer

Unmarshalling Error [com.ctc.wstx.exc.WstxLazyException]

I am communicating with a partner's webservice using proxy classes they've provided. I have this line of code which is throwing an exception: Dim response As requestWebRemittanceResponse =…
Matthew Grima
  • 1,513
  • 5
  • 25
  • 40
1
vote
0 answers

Using dashed webservice methods names in .Net

I'm trying to use a CGI web service. The Web Service method names contain dashes and wsdl.exe removes them in the generated proxy class. Trying to use the proxy class web service I'm getting an error: "Method 'q1:methodname' not implemented: method…
Fatih Kucukbaltaci