org.apache.ojb.broker.core.proxy
Class ProxyFactoryCGLIBImpl

java.lang.Object
  extended by org.apache.ojb.broker.core.proxy.AbstractProxyFactory
      extended by org.apache.ojb.broker.core.proxy.ProxyFactoryCGLIBImpl
All Implemented Interfaces:
java.io.Serializable, ProxyFactory

public class ProxyFactoryCGLIBImpl
extends AbstractProxyFactory

Author:
andrew.clute
See Also:
Serialized Form

Constructor Summary
ProxyFactoryCGLIBImpl()
           
 
Method Summary
 OJBProxy createProxy(java.lang.Class proxyClass, 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.
 
Methods inherited from class org.apache.ojb.broker.core.proxy.AbstractProxyFactory
createCollectionProxy, createIndirectionHandler, getCollectionProxy, getCollectionProxyClass, getIndirectionHandler, getIndirectionHandlerClass, getListProxyClass, getProxyFactory, getRealClass, getRealObject, getRealObjectIfMaterialized, getSetProxyClass, isCollectionProxy, isMaterialized, isProxy, isVirtualOjbProxy, setCollectionProxyClass, setIndirectionHandlerClass, setListProxyClass, setSetProxyClass, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactoryCGLIBImpl

public ProxyFactoryCGLIBImpl()
Method Detail

getDefaultIndirectionHandlerClass

public java.lang.Class getDefaultIndirectionHandlerClass()
Description copied from interface: ProxyFactory
Returns the class of a default IndirectionHandler that can be used for this implementaiton if now IndirectionHandlerClass implementation is given.


getIndirectionHandlerBaseClass

public java.lang.Class getIndirectionHandlerBaseClass()
Returns the class of the base class that the given IndirectionHandler must extend/implement


createProxy

public OJBProxy createProxy(java.lang.Class proxyClass,
                            IndirectionHandler handler)
                     throws java.lang.Exception
Throws:
java.lang.Exception

isNormalOjbProxy

public boolean isNormalOjbProxy(java.lang.Object proxyOrObject)
Description copied from class: AbstractProxyFactory
Determines whether the given object is an OJB proxy.

Specified by:
isNormalOjbProxy in interface ProxyFactory
Overrides:
isNormalOjbProxy in class AbstractProxyFactory
Returns:
true if the object is an OJB proxy

getDynamicIndirectionHandler

public IndirectionHandler getDynamicIndirectionHandler(java.lang.Object obj)
Description copied from class: AbstractProxyFactory
Returns the IndirectionHandler associated with a dynamic proxy. Each subclass is responsible for it's execution


interfaceRequiredForProxyGeneration

public boolean interfaceRequiredForProxyGeneration()
Description copied from interface: ProxyFactory
Method that returns whether or not this ProxyFactory can generate reference Proxies for classes regardless if they extend an interface or not.



(C) 2002 - 2006 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