List of usage examples for java.lang.reflect InvocationHandler interface-usage
From source file edu.vt.middleware.gator.util.StaxIndentationHandler.java
/**
* Simple {@link InvocationHandler} to be used with a proxy around a
* {@link XMLStreamWriter} to provide indented XML output.
*
* @author Middleware
* @version $Revision$
From source file org.apache.hivemind.examples.impl.ProxyLoggingInvocationHandler.java
/**
* An invocation handler used by {@link org.apache.hivemind.examples.impl.ProxyLoggingInterceptorFactory}.
* Logs all method invocations, return values and exceptions. Note that, unlike the real
* LoggingInterceptor, <code>toString()</code> will just pass through to the inner service object
* (typically, the core service implementation).
*
From source file com.googlecode.pondskum.client.HttpResponseInvocationHandler.java
public final class HttpResponseInvocationHandler implements InvocationHandler { private static final String NO_CONTENT = "N/A"; private String content = NO_CONTENT; private final HttpEntity httpEntity;
From source file org.ops4j.gaderian.examples.impl.ProxyLoggingInvocationHandler.java
/**
* An invocation handler used by {@link org.ops4j.gaderian.examples.impl.ProxyLoggingInterceptorFactory}.
* Logs all method invocations, return values and exceptions. Note that, unlike the real
* LoggingInterceptor, <code>toString()</code> will just pass through to the delegate service object
* (typically, the core service implementation).
*
From source file org.psikeds.common.config.ServletContextProxy.java
/**
* Proxy for javax.servlet.ServletContext: Intercepts all read access (Method
* getInitParameter()) to Spring's servlet config parameter
* "contextConfigLocation".
*
* @author marco@juliano.de
From source file com.link_intersystems.lang.reflect.ThreadLocalProxy.java
public class ThreadLocalProxy implements InvocationHandler { private ThreadLocal<?> threadLocal; private Object nullInstance; @SuppressWarnings("unchecked")
From source file org.unitils.core.engine.AnnotationDefaultInvocationHandler.java
/** * @author Tim Ducheyne */ public class AnnotationDefaultInvocationHandler<A extends Annotation> implements InvocationHandler { protected List<A> annotations;
From source file StringTrimmedResultSet.java
/**
* Wraps a <code>ResultSet</code> to trim strings returned by the
* <code>getString()</code> and <code>getObject()</code> methods.
*
* <p>
* Usage Example:
From source file org.nuxeo.runtime.service.proxy.MethodsWrapper.java
/** * Define wrappers for some methods on the target class. * * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> */ public abstract class MethodsWrapper implements InvocationHandler {
From source file org.castor.cpa.persistence.sql.connection.ConnectionProxy.java
/**
* Proxy class for JDBC Connection class, to allow information gathering
* for the purpose of SQL statement logging.
*
* @author <a href="mailto:ralf DOT joachim AT syscon DOT eu">Ralf Joachim</a>
* @version $Revision$ $Date$