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
WCF client proxy generation failing with new method addition
I have a library I need to generate client proxy classes for, and the existing code works fine when running this command and the service on my local box
svcutil.exe /config:thn /r:Citi.Rbcs.BusGn.dll /r:Citi.Rbcs.Buscm.dll…

NZJames
- 4,963
- 15
- 50
- 100
0
votes
1 answer
Is this an example of DTO or ...?
I've worked on several projects where we very strictly code to interfaces which expose little or no mutability for the interface properties. Then, I find myself writing classes which provide arbitrary ability to mutate the object in any way and…

MPavlak
- 2,133
- 1
- 23
- 38
0
votes
1 answer
Dynamic proxies to auto-save models
I'm trying to make some auto-magic happen in java using proxies to track objects and saving them when a set* method is called. I started of using java's built in Proxy, and everything works just fine, but from what I can understand I need a…

atomman
- 2,510
- 1
- 16
- 27
0
votes
1 answer
JDK Dynamic Proxying
I know cglib proxying works by subclassing target class and overriding target class' methods.
Can anyone tell how exactly dynamic proxy works?
I know it uses interface for proxying, but how exactly method invokation happens through proxy?

deepakraut
- 893
- 1
- 10
- 17
0
votes
1 answer
How to suspend dynamic proxy's interceptor?
I have a timing interceptor for the services I use:
class TimingInterceptor : IInterceptor
{
public void Intercept(IInvocation invocation)
{
var watch = new Stopwatch();
watch.Start();
try
{
…

Angela_SB
- 249
- 4
- 12
0
votes
1 answer
How to use variable to choose which Proxy model will be used in Django
I have a model
#models.py
class BaseModel(model.Models)
some_field = ...
class Proxy_1(BaseModel)
class Meta:
proxy=True
class Proxy_2(BaseModel)
class Meta:
proxy=True
class Proxy_3(BaseModel)
class Meta:
…

Vor
- 33,215
- 43
- 135
- 193
0
votes
3 answers
How to add attributes to properties of a class generated (web service proxy)?
I have a Silverlight 3 application which gets data from a web service. When I add a reference to my web service, all the classes used by the web service are defined in a proxy class. So far, so good... Now, I would like to use the DataForm offered…

Martin
- 39,309
- 62
- 192
- 278
0
votes
1 answer
Unable to upload file using httpclient with Proxy support
I am working on a uploader class which will use the system's proxy settings to upload the files. In IE, if i enable the proxy settings, upload is not happening. Its stucked at the following line
System.out.println("Now uploading your file into…

Dinesh
- 16,014
- 23
- 80
- 122
-1
votes
3 answers
reflection.proxy not valid when override
It seems reflection.proxy does not what is expected when there are overriden methods. In detail, starting with simple application:
static void debug( String fmt, Object... args ) {
System.out.println( String.format(fmt,args));
}
interface I {
…

pasaba por aqui
- 3,446
- 16
- 40
-1
votes
1 answer
For some functions in WCF string[] is not converted to List
I have a WCF service with many functions. Some of them contain List arguments. e.g
[ServiceContract]
public interface IQueriesService
{
[OperationContract]
DataTable ExecuteSimpleQuery(List sel, List fr, List…

Artak Khachatryan
- 311
- 5
- 16
-2
votes
1 answer
How Java provides implementation of Array internally?
I have gone through Java tutorials but a confusion about arrays is still there in my mind.
How array works internally? From where the data member length comes?(when we have to get the length of dynamic array, we usually use array.length)
-7
votes
1 answer
Proxy class and correct syntax c++
Let's say we got class A and method B... The correct Syntax is return type A::B() {...}
Now imagine, we have a class B inside the class A and plus method C that has the inner class B (proxy class due to [ ][ ] operator) as a "return type". How do I…

Zdenek Hatak
- 1,135
- 14
- 23