|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdynaop.ProxyFactory
public class ProxyFactory
Manufactures proxies.
Method Summary | |
---|---|
java.lang.Object |
extend(java.lang.Class parentClass)
Creates class proxy for the given target class. |
static ProxyFactory |
getInstance()
Gets default proxy factory instance. Uses default Aspects instance. |
static ProxyFactory |
getInstance(Aspects aspects)
Creates proxy factory instance configured using given aspects. |
java.lang.Object |
wrap(java.lang.Object target)
Creates dynamic proxy for the given target object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object wrap(java.lang.Object target)
Creates a completely new proxy instance that wraps a target instance and implements the specified interfaces. Keeps proxy separate from target object.
public java.lang.Object extend(java.lang.Class parentClass)
Extends the parent class and overrides
methods to support interception, and implements specified interfaces.
Ties proxy and proxied class together but works
with classes that don't have interfaces (java.util.Date
for example).
public static ProxyFactory getInstance(Aspects aspects)
public static ProxyFactory getInstance()
Aspects
instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |