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
0
votes
0 answers

Java dynamic composition

Is it possible in Java to have a composite object dynamically forward events to its children. He is example of what I'm trying to achieve: public interface Listener { void onEvent(); void onAnotherEvent(); ... } List
Steven Roberts
  • 300
  • 1
  • 3
  • 14
0
votes
3 answers

EF check collection initialized state

Let's assume the following classes: public class Author { public virtual string Name { get; set; } public virtual List Books { get; set; } } public class Book { public virtual string Name { get; set; } public virtual Author…
h.alex
  • 902
  • 1
  • 8
  • 31
0
votes
0 answers

How make a Sprite's proxy?

i'm, following this tutorial http://www.flashandmath.com/intermediate/swfload/ to load an original swf inside a new one. What i want to do is a wrapper. Since some functions was called from external side(scaleform/daapi) to original SWF, i need a…
user2054758
  • 321
  • 3
  • 18
0
votes
0 answers

Should I access these attributes directly or rather use proxy methods?

My client API encapsulates connections to the server in a class ServerConnection that stores an asyncio.StreamReader/-Writer pair. (For simplicity, I will not use yield from or any other async technique in the code below because it doesn't matter…
balu
  • 3,500
  • 4
  • 34
  • 35
0
votes
2 answers

Date Conversion issue from webservice

I am consuming a Web Service which will return datetime fields in response object. My reference.cs file has, private System.DateTime timestampField; public System.DateTime Timestamp { get { return this.timestampField; } set { …
msbyuva
  • 3,467
  • 13
  • 63
  • 87
0
votes
1 answer

ClassNotFoundException for P6Spy when trying to log sql requests

I'm getting this exception : java.lang.ClassNotFoundException: com.p6spy.engine.spy.P6SpyDriver while trying to connect to my database through P6Spy Proxy Driver. This exception is pointing to this line of code : …
mounaim
  • 1,132
  • 7
  • 29
  • 56
0
votes
1 answer

How do I add an Interface to a MS Proxy Class for MS-CRM 2013

So I have a MS Dynamics CRM 2013 installation that I'm trying to integrate some items to and want to send some data. I have an interface (IAccnt) that I want to apply to the proxy class generated when I added the service refrence to…
ChrisHDog
  • 4,473
  • 8
  • 51
  • 77
0
votes
1 answer

Generate Proxy VB Class from WSDL for Windows Phone 8.1

I just finished working on the Android port of the iOS App that I have and now the client also wants to have a Windows Phone version just so they can have an App for all three markets and right now I'm not sure how to consume the Web Services as…
Sal Aldana
  • 1,235
  • 4
  • 17
  • 39
0
votes
1 answer

Get Non Proxy Classes From Proxy Classes, by keeping Proxy and Lazy Load Enabled in Entity Framework.

I am using EF with proxy and lazy load enabled. But for some process I need to get the actual non proxy classes. I have used "proxy.GetType();" etc. But all in vain. Can you please help me to get the non proxy classes? Thanks.. Code: public…
0
votes
1 answer

Generic WeakReference proxy

I want to create custom WeakReference which would implement an interface passed as generic parameter T. Usage: interface IInterface { void SomeMethod(bool param); } public class Subject : IInterface { /*...*/ } var proxyRef = new…
Towelie
  • 99
  • 2
  • 10
0
votes
2 answers

Is there a runtime proxy creation library that supports to retain annotations of the proxied class?

When creating a proxy with for example cglib or javassist proxies, this proxy is implemented by creating a subclass of the proxy target. However, this means that the annotations on this proxy are lost. This is problematic when a class is processed…
Rafael Winterhalter
  • 42,759
  • 13
  • 108
  • 192
0
votes
1 answer

nHibernate Lazy Load / Proxied Objects - Persistance Problems

[Updated with mapping files] Ran into an issue with a lazy loaded / proxied object being persisted today. It relates to two classes, Invoice and Address. A invoice has an Address property. Both classes are setup to be lazy loaded and all methods are…
0
votes
1 answer

Advantages of using interfaces in Spring AOP

I read this on a guideline "When using Spring AOP always use interfaces so normal AOP proxying can be used (rather than CGLIB)" What could than mean? I have very good idea on AOP and have implemented AOP myself before. But completely out of clue.
Amit Nath
  • 50
  • 1
  • 4
0
votes
1 answer

WCF web service calling 3rd party service internally

My project current goal is to create a one stop shop for all the data retrieval either its coming from the service or DB. So we created a WCF solution using Repository pattern that exposes methods to the calling clients and internally it calls…
0
votes
1 answer

Error when the proxy code class is added to the project

I have a project was created in framework 3.5 and the proxy class was created using wsdl.exe. I am trying to change the framework to 4.0 of the service class which was in framework 3.5 and use same and created a proxy class using wsdl. I tried to…
roopini n
  • 503
  • 2
  • 7
  • 29