org.apache.jackrabbit.ocm.manager.objectconverter.impl
Class AbstractLazyLoader

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.objectconverter.impl.AbstractLazyLoader
All Implemented Interfaces:
java.io.Serializable, net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.InvocationHandler
Direct Known Subclasses:
BeanLazyLoader, CollectionLazyLoader

public abstract class AbstractLazyLoader
extends java.lang.Object
implements net.sf.cglib.proxy.InvocationHandler, java.io.Serializable

Parent Class of the OCM Lazy Loaders

Author:
Stephane LANDELLE
See Also:
Serialized Form

Constructor Summary
AbstractLazyLoader()
           
 
Method Summary
protected abstract  java.lang.Object fetchTarget()
          Fetch the proxified instance
protected  java.lang.Object getTarget()
          Return the proxified instance
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Invoke proxy methods : delegate to proxified instance except for OcmProxy methods that are intercepted (because not concretely implemented)
 boolean isInitialized()
          Getter of property initialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLazyLoader

public AbstractLazyLoader()
Method Detail

getTarget

protected java.lang.Object getTarget()
Return the proxified instance

Returns:
the proxified instance

fetchTarget

protected abstract java.lang.Object fetchTarget()
Fetch the proxified instance

Returns:
the proxified instance

isInitialized

public boolean isInitialized()
Getter of property initialized

Returns:
initialized

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Invoke proxy methods : delegate to proxified instance except for OcmProxy methods that are intercepted (because not concretely implemented)

Specified by:
invoke in interface net.sf.cglib.proxy.InvocationHandler
Throws:
java.lang.Throwable
See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.