List of usage examples for java.lang.reflect InvocationHandler interface-usage
From source file org.jabsorb.client.Client.java
/** * [START HERE] A factory to create proxies for access to remote Jabsorb services. */ public class Client implements InvocationHandler { private static Logger log = LoggerFactory.getLogger(Client.class);
From source file org.bytesoft.bytetcc.supports.springcloud.SpringCloudCoordinator.java
public class SpringCloudCoordinator implements InvocationHandler { private String identifier; public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Class<?> clazz = method.getDeclaringClass(); String methodName = method.getName();
From source file org.springframework.aop.framework.JdkDynamicAopProxy.java
/**
* JDK-based {@link AopProxy} implementation for the Spring AOP framework,
* based on JDK {@link java.lang.reflect.Proxy dynamic proxies}.
*
* <p>Creates a dynamic proxy, implementing the interfaces exposed by
* the AopProxy. Dynamic proxies <i>cannot</i> be used to proxy methods
From source file org.apache.hadoop.hive.metastore.RetryingRawStore.java
@InterfaceAudience.Private @InterfaceStability.Evolving public class RetryingRawStore implements InvocationHandler { private static final Log LOG = LogFactory.getLog(RetryingRawStore.class);
From source file telegram.polling.BotApiProxy.java
/** * * @author user */ public class BotApiProxy implements InvocationHandler {
From source file net.big_oh.common.jdbc.JdbcObserverProxyConnectionInvocationHandler.java
/** * The invocation handler for a {@link Proxy} that stands in for a Driver-created SQL {@link Connection} so that * all Statements created on the Connection can be observed. */ class JdbcObserverProxyConnectionInvocationHandler implements InvocationHandler {
From source file org.rhq.core.system.SigarAccessHandler.java
/**
* An {@link InvocationHandler} for a {@link org.hyperic.sigar.SigarProxy}.
* <p>A single instance of this class will be created by the {@link SigarAccess} class.</p>
* This class holds a shared {@link Sigar} instance and serializes calls. If a thread waits more than
* 'sharedSigarLockMaxWait' seconds, it will be given a new Sigar instance, which will be destroyed at the end of the
* call.
From source file org.mc4j.ems.impl.jmx.connection.support.providers.proxy.GenericMBeanServerProxy.java
/**
* A proxy for a remote MBeanServer stub, which does the following for each invocation:
* <ul>
* <li>if the invocation fails, attempts to reestablish the underlying RMI connection and then retries the invocation</li>
* <li>if the underlying connection's type is JBoss, do a JAAS login before the invocation and a JAAS logout after it</li>
* </ul>
From source file ProxyTest.java
/** * An invocation handler that prints out the method name and parameters, then * invokes the original method */ class TraceHandler implements InvocationHandler { /**
From source file org.bytesoft.bytejta.supports.springcloud.SpringCloudCoordinator.java
public class SpringCloudCoordinator implements InvocationHandler { static final Logger logger = LoggerFactory.getLogger(SpringCloudCoordinator.class); private String identifier; public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {