|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.core.proxy.ProxyHelper
public class ProxyHelper
ProxyHelper used to get the real thing behind a proxy
| Constructor Summary | |
|---|---|
ProxyHelper()
|
|
| Method Summary | |
|---|---|
static CollectionProxy |
getCollectionProxy(Object item)
Return CollectionProxy for item is item is a CollectionProxy, otherwise return null |
static IndirectionHandler |
getIndirectionHandler(Object obj)
Returns the invocation handler object of the given proxy object. |
static ProxyFactory |
getProxyFactory()
|
static Class |
getRealClass(Object objectOrProxy)
Get the real Class |
static Object |
getRealObject(Object objectOrProxy)
Get the real Object |
static Object |
getRealObjectIfMaterialized(Object objectOrProxy)
Get the real Object for already materialized Handler |
static boolean |
isCollectionProxy(Object item)
Reports if item is a CollectionProxy. |
static boolean |
isMaterialized(Object object)
Determines whether the object is a materialized object, i.e. |
static boolean |
isNormalOjbProxy(Object proxyOrObject)
Determines whether the given object is an OJB proxy. |
static boolean |
isProxy(Object proxyOrObject)
Returns true if the given object is a Proxy
or a VirtualProxy instance. |
static boolean |
isVirtualOjbProxy(Object proxyOrObject)
Determines whether the given object is an OJB virtual proxy. |
static String |
toString(Object object)
Materialization-safe version of toString. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyHelper()
| Method Detail |
|---|
public static ProxyFactory getProxyFactory()
public static final Object getRealObject(Object objectOrProxy)
objectOrProxy -
public static final Object getRealObjectIfMaterialized(Object objectOrProxy)
objectOrProxy -
public static final Class getRealClass(Object objectOrProxy)
objectOrProxy -
public static boolean isNormalOjbProxy(Object proxyOrObject)
true if the object is an OJB proxypublic static boolean isVirtualOjbProxy(Object proxyOrObject)
true if the object is an OJB virtual proxypublic static boolean isProxy(Object proxyOrObject)
Proxy
or a VirtualProxy instance.
public static IndirectionHandler getIndirectionHandler(Object obj)
obj - The object
null
otherwisepublic static boolean isMaterialized(Object object)
object - The object to test
true if the object is materializedpublic static String toString(Object object)
object - The object for which a string representation shall be generated
public static CollectionProxy getCollectionProxy(Object item)
public static boolean isCollectionProxy(Object item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||