org.eclipse.net4j.util.lifecycle
Class LifecycleUtil.Delegator<T>

java.lang.Object
  extended by org.eclipse.net4j.util.lifecycle.LifecycleUtil.Delegator<T>
All Implemented Interfaces:
InvocationHandler
Enclosing class:
LifecycleUtil

public static final class LifecycleUtil.Delegator<T>
extends Object
implements InvocationHandler

The invocation handler of the dynamic proxy created in LifecycleUtil.delegateLifecycle().

Since:
2.0

Constructor Summary
LifecycleUtil.Delegator(T pojo, ILifecycle delegate)
           
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static
<T> T
newProxy(ClassLoader loader, T pojo, Class<?> pojoInterface, ILifecycle delegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleUtil.Delegator

public LifecycleUtil.Delegator(T pojo,
                               ILifecycle delegate)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

newProxy

public static <T> T newProxy(ClassLoader loader,
                             T pojo,
                             Class<?> pojoInterface,
                             ILifecycle delegate)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.