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
3
votes
1 answer
Spring Java config, @Autowire vs. Constructor Injection, @Transactional and CGLIB
We've been using @Autowired plus Java-based Spring configuration with some success but now, we're losing control. Everyone is starting to add autowired dependencies everywhere, creating cycles and strange bugs.
So we are considering using…

Aaron Digulla
- 321,842
- 108
- 597
- 820
3
votes
0 answers
How do I record and replay method calls in c#.net for isolation testing of legacy code
I have a repository and a consumer of that repository in some legacy code.
The consumer makes multiple method calls to the repository.
Each method call returns a huge resultset.
I do have an integration test that checks how the consumer and…

perfectionist
- 4,256
- 1
- 23
- 34
3
votes
1 answer
What's proxies for in Java?
I am reading the Proxies section in Horstmann's renowned book Core Java. I am new to this concept though. As written in the book, proxies are only necessary when you don't yet know at compile time which interfaces you need to implement. However,…

HFanJava
- 33
- 3
3
votes
0 answers
Including Custom Proxy Class File in Visual Studio 2010
I am currently running into an issue with adding web references into my Project in VS 2010. The issue is that when I add the web reference, I get a soap.wsdl file and a References.map file. Typically, when the web reference gets added successfully,…

thecoalman
- 151
- 2
- 9
3
votes
2 answers
Inspect CGLib proxied Groovy classes from Java
I'm trying to inspect Groovy generated methods on some CGLib proxied Groovy class, from Java, to learn what the return and parameter types are for methods. Ex, consider this Groovy class:
class Person {
String name
}
Groovy generates getName()…

Jonathan
- 5,027
- 39
- 48
3
votes
1 answer
Python object proxying: how to access proxy
I found this recipe to create a proxy class. I've used it to wrap a custom object and would like to overload certain properties and also attach new attributes to the proxy. However, when I call any method on the proxy (from within the proxy class),…

orange
- 7,755
- 14
- 75
- 139
3
votes
1 answer
VisualVM and GlassFish
Currently, I am trying to weed out bottlenecks in my JSF/PrimeFaces web application. In order to do so, I installed VisualVM and its GlassFish plug-in.
I am unable to explicitly "profile" over JMX, but I can generate a "sampling" output. This…

Pascal Kesseli
- 1,620
- 1
- 21
- 37
3
votes
2 answers
How to mock a static call on a class from a third-party library
I am wondering whether it is possible with PowerMock or any other library to mock out a static call in a class from a library. The class in that third-party library makes a call to one of the classes in the rt.jar and I want a return a custom…

Rag
- 1,363
- 4
- 19
- 36
3
votes
1 answer
Axis HTTP Vs Axis HTTPS Proxy Settings
My Java application deployed on Weblogic Cluster invokes two Webservices which are as follow.
• It sents SOAP Client request to External Application which is on internet) over HTTPS.(Java Classes created through Axis 1.4)
• Thereafter It sents SOAP…

Sankalp
- 173
- 2
- 9
- 25
3
votes
2 answers
Generic Javascript proxy for Firebase
I'm using a proxy class as the data I have is a reference to a Firebase location that stores my object but I want to act as if I have the object itself. I've got something that works fine but I would like to improve it, the key criteria being to…

axzr
- 660
- 5
- 16
3
votes
1 answer
Casting Proxies - Getting ClassCastException
I'm getting some weirdness when I'm casting a Dynamic Proxy Class to the object I want it to be. At runtime, under certain conditions, I receive a ClassCastException.
In order to explain this better, here are the definitions for the…

Chris Watts
- 6,197
- 7
- 49
- 98
3
votes
3 answers
What would cause a WCF service to return an object of type "object"
Per my other post about WCF service return values, I'm consuming a web service from another company, and when I add the service reference inside Visual Studio, the return value of the method is an object of type object.
The author of the web service…

John B
- 20,062
- 35
- 120
- 170
3
votes
1 answer
c# proxy class for test and production web service
I use the generated webservice proxy classes from visual studio 2010 to access a web service from my .net 2.0 client.
This works all fine, but my problem is, that the webservice has a wsdl for the testsystem and a wsdl for the production…

Robert Pordes
- 31
- 3
3
votes
1 answer
Why do navigation properties have to be public for a proxy to be created?
At http://msdn.microsoft.com/en-us/library/dd468057.aspx I read that all navigation properties for which I would like to have a change tracking proxy need to be public and virtual. From what I understand, the CLR creates subclasses of my POCOs…

Martijn
- 11,964
- 12
- 50
- 96
2
votes
7 answers
python koans: class proxy
I'm solving the python koans.
I haven't got any real problem until the 34th.
this is the problem:
Project: Create a Proxy Class
In this assignment, create a proxy class (one is started for you
below). You should be able to initialize the proxy…

kurojishi
- 321
- 1
- 4
- 12