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

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.objectconverter.impl.OcmProxyUtils

public abstract class OcmProxyUtils
extends Object

Utils class for proxy nandling

Author:
Stephane LANDELLE

Constructor Summary
OcmProxyUtils()
           
 
Method Summary
static
<T> T
fetch(T object)
          Force fetching of an abject
static boolean isInitialized(Object object)
          Check is an Object is not an unitialized OCM proxy
static boolean isProxy(Object object)
          Check if an object is an OCM proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OcmProxyUtils

public OcmProxyUtils()
Method Detail

isProxy

public static boolean isProxy(Object object)
Check if an object is an OCM proxy

Parameters:
object - the Object to check
Returns:
true is the object is an OCM proxy

isInitialized

public static boolean isInitialized(Object object)
Check is an Object is not an unitialized OCM proxy

Parameters:
object - the Object to check
Returns:
true if the object is not an OCM proxy or if it has already been initialized
See Also:
OcmProxy.isInitialized()

fetch

public static <T> T fetch(T object)
Force fetching of an abject

Type Parameters:
T - the type of the object to fetch
Parameters:
object - the object to fetch
Returns:
the fetched object


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