org.ops4j.pax.wicket.util.proxy
Class LazyInitProxyFactory

java.lang.Object
  extended by org.ops4j.pax.wicket.util.proxy.LazyInitProxyFactory

public class LazyInitProxyFactory
extends Object


Nested Class Summary
protected static interface LazyInitProxyFactory.IWriteReplace
           
 
Constructor Summary
LazyInitProxyFactory()
           
 
Method Summary
static Object createProxy(Class<?> type, IProxyTargetLocator locator)
           
protected static boolean isEqualsMethod(Method method)
          Checks if the method is derived from Object.equals()
protected static boolean isFinalizeMethod(Method method)
          Checks if the method is derived from Object.finalize()
protected static boolean isHashCodeMethod(Method method)
          Checks if the method is derived from Object.hashCode()
protected static boolean isToStringMethod(Method method)
          Checks if the method is derived from Object.toString()
protected static boolean isWriteReplaceMethod(Method method)
          Checks if the method is the writeReplace method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyInitProxyFactory

public LazyInitProxyFactory()
Method Detail

createProxy

public static Object createProxy(Class<?> type,
                                 IProxyTargetLocator locator)

isEqualsMethod

protected static boolean isEqualsMethod(Method method)
Checks if the method is derived from Object.equals()

Parameters:
method - method being tested
Returns:
true if the method is derived from Object.equals(), false otherwise

isHashCodeMethod

protected static boolean isHashCodeMethod(Method method)
Checks if the method is derived from Object.hashCode()

Parameters:
method - method being tested
Returns:
true if the method is defined from Object.hashCode(), false otherwise

isToStringMethod

protected static boolean isToStringMethod(Method method)
Checks if the method is derived from Object.toString()

Parameters:
method - method being tested
Returns:
true if the method is defined from Object.toString(), false otherwise

isFinalizeMethod

protected static boolean isFinalizeMethod(Method method)
Checks if the method is derived from Object.finalize()

Parameters:
method - method being tested
Returns:
true if the method is defined from Object.finalize(), false otherwise

isWriteReplaceMethod

protected static boolean isWriteReplaceMethod(Method method)
Checks if the method is the writeReplace method

Parameters:
method - method being tested
Returns:
true if the method is the writeReplace method, false otherwise


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.