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.
Questions tagged [proxy-classes]
342 questions
0
votes
1 answer
Django-reversion and proxy models
I'm having trouble saving my model revisions when there are proxy models defined.
class MyModel(models.Model):
field = model.IntegerField(...)
class MyModelProxy(MyModel):
class Meta:
proxy = True
reversion.register(MyModel)
I'm…

Marek M.
- 3,799
- 9
- 43
- 93
0
votes
1 answer
XmlArrayItem deserialization error with nested items
I am totally new to serialization and would greatly appreciate any help.
I am having problems deserializing the response message I receive from the proxy class I created through WSDL.exe. I believe the problem lies in the fact that I am using…

Jimbo
- 73
- 8
0
votes
1 answer
(AS7) Error calling remote EJB method with proxified CDI bean in parameter
Can I call a remote EJB method with CDI bean in parameter method?
Like this:
I have a LoggedUserProducer.java thats produces a User from the database.
public class LoggedUserProducer {
@Produces
@SessionScoped
@LoggedUser
public…

ethanxyz_0
- 713
- 12
- 37
0
votes
1 answer
asp.net entity framework: casting of inheritance proxies
Since the Entity Framework creates proxy instead of providing the "original" entity classes, how do you cast a parent class to a child class?
This does not work "the normal way" because the automatically created proxy classes don't use the…

Cleo
- 93
- 1
- 2
- 9
0
votes
1 answer
How to Write Proxy Methods?
First I don't know the term of "Proxy Methods" are true way to describe what I need is but let me tell what I really want to know actually :
Suppose I have a class, named Proxy Class containing proxy methods
class ProxyMethods
{
public void…

Tarik
- 79,711
- 83
- 236
- 349
0
votes
1 answer
How to use BlankSlate and Proxy patterns to create a symlink between records?
I want to be able to add a record which acts like a symlink. In other words I want to be able to store a record/object which will defer most attributes to another record/object.
The same as on a file system where a symlink points to another file…

Kris
- 19,188
- 9
- 91
- 111
0
votes
1 answer
Rails: Make a remote proxy persist with active record
A course proxy knows the id of a course on a remote system and
fetches that info when it is accessed.
Example code:
class Course < BasicObject
attr_accessor :course_id, :course_info
[..]
def method_missing(*a, &b)
if course_info.nil?
…

Ernst
- 235
- 2
- 12
0
votes
2 answers
Manually change the ClientBase collection type from Array[] to List<>
I'm using my own WCF proxy with ClientBase, I want to do somthing like the ct attribute in the svc util, and tell the proxy to return the List<> collection type.
i cant use List<> because the entities managed by nhibernate so i have to use IList
the…

Chen Kinnrot
- 20,609
- 17
- 79
- 141
0
votes
1 answer
Proxy Class for Doctrine 1.2 models
I am writing an application where I route my methods from my application to a sevice and then to the models of Doctrine. But the server of the service is not allowing more than one class to be included. So I need to write a proxy class for all my…

Sriniwas
- 505
- 2
- 6
- 21
0
votes
2 answers
solving multiple inheritance (for precooked classes)
What I need: a class with two parents, which are ContextBoundObject and another class.
Why: I need to access the ContextBoundOject to log the method calls.
Composition works? As of now, no (types are not recognized, among other things).
Are other…

lunadir
- 339
- 3
- 15
0
votes
0 answers
Custom serialization with Javassist-generated proxy class
I have a proxy class generated by Javassist's ProxyFactory for a serializable class. I need to send an instance of the target class represented by the proxy class over RMI, but the remote client does not have the proxy class code so that I can only…

Tom Tucker
- 11,676
- 22
- 89
- 130
0
votes
1 answer
Unable to read xml data present in webservice response using c# proxy class
I need to consume web service in C# website application. I generated the proxy class using wsdl command and I am able to use it to invoke the webservice and get the result.
The issue is that I have 2 fields in response xml which provide data in…

Bhuvana
- 152
- 1
- 7
0
votes
1 answer
How the proxy instance pass itself to the InvocationHandler?
here is the method signature from the Proxy class:
Object java.lang.reflect.Proxy.newProxyInstance(ClassLoader loader, Class>[] interfaces, InvocationHandler h) throws IllegalArgumentException
I check the source code of the newProxyInstance in…

skystar7
- 4,419
- 11
- 38
- 41
0
votes
2 answers
How can I send POCO Entities through WCF Service when I don't want to track the entity *later*?
I have an ASP.NET MVC 4 project, where Controller calls a WCF Service layer, that calls Business Layer, that use a Repository of EF 5.0 Entities. Then the results are returned as POCO entities to the Controller.
It works fine while the WCF Service…

eduardobr
- 146
- 15
0
votes
1 answer
Compiled Proxy Class (in bin) vs. Web Reference
I have a handful of ASP.NET websites which communicate with different instances of SQL Server 2005 via a web reference to the report server's web service. However, today I toyed with the notion of using the WSDL tool to create a proxy class from one…

TMcManemy
- 814
- 9
- 20