Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.management.guards
Class GuardedServiceHandler<T>

java.lang.Object
  extended by org.nuxeo.ecm.core.management.guards.GuardedServiceHandler<T>
All Implemented Interfaces:
InvocationHandler

public class GuardedServiceHandler<T>
extends Object
implements InvocationHandler

Invoke proxied service only if service is available regarding administrative statuses.

Author:
"Stephane Lacoin at Nuxeo (aka matic)"

Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static
<T> T
newProxy(T object, Class<T> itf)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newProxy

public static <T> T newProxy(T object,
                             Class<T> itf)

invoke

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.