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:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.InvocationHandler
Direct Known Subclasses:
BeanLazyLoader, CollectionLazyLoader

public abstract class AbstractLazyLoader
extends Object
implements net.sf.cglib.proxy.InvocationHandler

Parent Class of the OCM Lazy Loaders

Author:
Stephane LANDELLE

Constructor Summary
AbstractLazyLoader()
           
 
Method Summary
protected abstract  Object fetchTarget()
          Fetch the proxified instance
protected  Object getTarget()
          Return the proxified instance
 Object invoke(Object proxy, Method method, 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 Object getTarget()
Return the proxified instance

Returns:
the proxified instance

fetchTarget

protected abstract Object fetchTarget()
Fetch the proxified instance

Returns:
the proxified instance

isInitialized

public boolean isInitialized()
Getter of property initialized

Returns:
initialized

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws 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:
Throwable
See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.