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
2
votes
1 answer
Automated null checks
Vendors commonly give me sprawling, oversized proxy classes to pass information. Often times to get to the actual content of the message I have to descend into a property like this:
var priceOfEggs =…

micahhoover
- 2,101
- 8
- 33
- 53
2
votes
2 answers
Generic Thread Safe Proxy in Java
Sorry if this is a common question, can't find an answer.
I wonder if there is a generalisation of the Thread Safe proxies that are available for collections, those that make un-sinchronized collections synchronized.
Using AspectJ, it should be…

zakmck
- 2,715
- 1
- 37
- 53
2
votes
2 answers
.NET webservice using an instance of a parameter type?
I have a Windows forms project and a Web Service project in my solution, and I'm trying to call the web service and return a customer object as the result. The problem is that when I try to receive the return object, I get an error that it can't…

SqlRyan
- 33,116
- 33
- 114
- 199
2
votes
1 answer
Implementing a proxy object
My problem
I’m using the wxWidgets library in Python (through the wxPython wrapper). I’m trying to implement a class, PaddedStaticText, that behaves identically to the WX StaticText class, but which has a user-configurable padding on each side.…

bdesham
- 15,430
- 13
- 79
- 123
2
votes
2 answers
Why proxy is not used to autowire
I can not find any reason why every autowired bean are not autowired by proxy. I know that becasue @Transactional annotations do not work and I checked autowired component during debugging in eclipse. Of course every component implements some…

Mariusz
- 1,907
- 3
- 24
- 39
2
votes
0 answers
Using DynamicProxy to Adapt an Interface to a Different Type
I have a custom generic class that is used call methods on a remote interface. This class has a single, overloaded method, Execute which accepts either an Action or Func to call on the remote interface.
public class…

mclark1129
- 7,532
- 5
- 48
- 84
2
votes
4 answers
How Do I Intercept Outbound and Inbound Soap Messages from C# Client Side Web Proxy
I'm writing UI to test an asmx web service. Server and client are .NET. Client proxy has been generated using wsdl.exe.
I would like to intercept and store a string representation of outgoing and incoming SOAP messages generated as a result of…

IanT8
- 2,167
- 2
- 23
- 38
2
votes
1 answer
Why can't I pass this object as an argument?
Background:
Writing a client that consumes a web service, in C# using .NET 4.0. Proxy class includes an object of type record, which is populated from a SOAP response from the web service.
Situation:
The API includes two functions, findRecords and…

Ant
- 545
- 1
- 9
- 26
2
votes
2 answers
Proxy class for accessing other class' items as attributes (__getitem__ infinite recursion)
I have a class LabelMapper (a boost::python class), which implements the dictionary protocol. I would like to have a proxy class which will use attributes for accessing that dicionary. I've seen many posts for overriding __setitem__ and __getitem__…

eudoxos
- 18,545
- 10
- 61
- 110
2
votes
1 answer
View contents of dynamically generated java classes
Is there a way that we can view contents of dynamically generated java classes (like proxies generated by either JDKProxy or CGLIB) in some way - like in eclipse debugger view or have it printed on the log file on demand?

Kilokahn
- 2,281
- 1
- 25
- 50
2
votes
2 answers
Doctrine ORM Entity class name is returning a Proxy class name
I am currently retrieving the class name of my entities to save changes into a log. This happens in a listener:
In my service layer:
$product = $line->getProduct();
$product->setAvailability($product->getAvailability() -…

faisbu
- 275
- 1
- 3
- 18
2
votes
1 answer
Arbitrary index of model as root index of a view in Qt?
I'm wondering if it is possible to have multiple views onto a common model, where each view's root index is an arbitrary index in the common model in Qt?
Can this be achieved with a proxy model of some sort?
E.g.
source model:
root
-A
-1
-2
…

russdot
- 625
- 1
- 7
- 14
2
votes
1 answer
Model.GetType().Name appended with what looks like GUID
I'm doing a code first ASP .NET MVC project.
In my view, I'm taking in the entity.
@model MyProject.Model.MyEntity
Within the view I am rendering a partial view, passing in the model.
@Html.Partial("_Edit", Model)
In this partial view I have…

PeteGO
- 5,597
- 3
- 39
- 70
2
votes
1 answer
Can't deserialize WCF proxy class
Here's the situation. I have two WCF services, 1 is a BizTalk service, the other is a plain 'ol WCF service used for querying a data repository. I have a test application that has service references added to both of these services. I'm using HL7v3…

Bensonius
- 1,501
- 1
- 15
- 39
2
votes
2 answers
Array instead of List in WCF Service Proxy Generated using svcutil.exe
I have a ServiceContract,
using System.Collections.Generic;
using System.ServiceModel;
namespace MainModule.Sub.Communication
{
[ServiceContract]
public interface IWebMethod
{
[OperationContract(IsOneWay = false)]
bool…

Sreekumar P
- 5,900
- 11
- 57
- 82