org.nuxeo.ecm.core.management.guards
Class GuardedServiceHandler<T>
java.lang.Object
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)"
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.