public class ProxyFactoryJDKImpl extends AbstractProxyFactory
Constructor and Description |
---|
ProxyFactoryJDKImpl() |
Modifier and Type | Method and Description |
---|---|
OJBProxy |
createProxy(java.lang.Class baseClass,
IndirectionHandler handler) |
java.lang.Class |
getDefaultIndirectionHandlerClass()
Returns the class of a default IndirectionHandler that can be used for this implementaiton
if now IndirectionHandlerClass implementation is given.
|
IndirectionHandler |
getDynamicIndirectionHandler(java.lang.Object obj)
Returns the IndirectionHandler associated with a dynamic proxy.
|
java.lang.Class |
getIndirectionHandlerBaseClass()
Returns the class of the base class that the given IndirectionHandler must extend/implement
|
boolean |
interfaceRequiredForProxyGeneration()
Method that returns whether or not this ProxyFactory can generate reference Proxies
for classes regardless if they extend an interface or not.
|
boolean |
isNormalOjbProxy(java.lang.Object proxyOrObject)
Determines whether the given object is an OJB proxy.
|
createCollectionProxy, createIndirectionHandler, getCollectionProxy, getCollectionProxyClass, getIndirectionHandler, getIndirectionHandlerClass, getListProxyClass, getProxyFactory, getRealClass, getRealObject, getRealObjectIfMaterialized, getSetProxyClass, isCollectionProxy, isMaterialized, isProxy, isVirtualOjbProxy, setCollectionProxyClass, setIndirectionHandlerClass, setListProxyClass, setSetProxyClass, toString
public java.lang.Class getDefaultIndirectionHandlerClass()
ProxyFactory
public java.lang.Class getIndirectionHandlerBaseClass()
public OJBProxy createProxy(java.lang.Class baseClass, IndirectionHandler handler) throws java.lang.Exception
java.lang.Exception
public IndirectionHandler getDynamicIndirectionHandler(java.lang.Object obj)
AbstractProxyFactory
public boolean isNormalOjbProxy(java.lang.Object proxyOrObject)
AbstractProxyFactory
isNormalOjbProxy
in interface ProxyFactory
isNormalOjbProxy
in class AbstractProxyFactory
true
if the object is an OJB proxypublic boolean interfaceRequiredForProxyGeneration()
ProxyFactory
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30