Example usage for java.lang.reflect InvocationHandler interface-usage

List of usage examples for java.lang.reflect InvocationHandler interface-usage

Introduction

In this page you can find the example usage for java.lang.reflect InvocationHandler interface-usage.

Usage

From source file org.eclipse.ecr.core.api.TransactionalCoreSessionWrapper.java

/**
 * Wrapper around a CoreSession that gives it transactional behavior.
 * <p>
 * Transactional behavior:
 * <ul>
 * <li>notifies the event service on transaction start/stop</li>

From source file net.sf.jdbcwrappers.trim.TrimmingResultSetInvocationHandler.java

/**
 * {@link java.sql.ResultSet} wrapper that automatically trims strings retrieved
 * from <tt>CHAR</tt> columns.
 * Note that trimming is strictly limited to <tt>CHAR</tt> columns; values
 * retrieved from <tt>VARCHAR</tt> columns remain unchanged.
 * The wrapper relies on {@link ResultSetMetaData} to determine the column

From source file org.jdag.config.ConfigurationProvider.java

/**
 * A class that proxies the configuration interface and provides configuration
 * details from the underlying properties file using apache configuration.
 *
 * @author Balraja Subbiah
 * @version $Id:$

From source file com.espertech.esper.view.stream.EventStreamProxy.java

public class EventStreamProxy implements java.lang.reflect.InvocationHandler {

    private static final Log auditLog = LogFactory.getLog(AuditPath.AUDIT_LOG);

    private final String statementName;
    private final String eventTypeAndFilter;

From source file org.apache.jena.security.impl.CachedSecurityEvaluator.java

/**
 * A SecurityEvaluator that can be cached for later use.
 */
public class CachedSecurityEvaluator implements InvocationHandler {
    private final SecurityEvaluator wrapped;
    private final Principal origPrincipal;

From source file org.reusables.jpa.HibernateEntityManagerFactoryBean.java

/**
 * {@link FactoryBean} for accessing the {@link EntityManager} of the current transaction.
 * 
 * <p>Factory that creates a proxy for the {@link HibernateEntityManager} interface.
 * The proxy reroutes calls to the {@link EntityManager} returned by {@link EntityManagerFactoryUtils#getTransactionalEntityManager(EntityManagerFactory)}.
 * </p>

From source file org.ibeans.impl.IntegrationBeanInvocationHandler.java

/**
 * The proxy handler responsible for making calls on behalf of the the IntegrationBean.  This handler maintains any state
 * and parses any parameter annotations before making the call.
 */
public class IntegrationBeanInvocationHandler implements InvocationHandler, Serializable {
    protected static transient Log logger = LogFactory.getLog(IntegrationBeanInvocationHandler.class);

From source file org.apache.hadoop.io.retry.RetryInvocationHandler.java

class RetryInvocationHandler implements InvocationHandler {
    public static final Log LOG = LogFactory.getLog(RetryInvocationHandler.class);
    private Object implementation;

    private RetryPolicy defaultPolicy;
    private Map<String, RetryPolicy> methodNameToPolicyMap;

From source file org.apache.jxtadoop.io.retry.RetryInvocationHandler.java

class RetryInvocationHandler implements InvocationHandler {
    public static final Log LOG = LogFactory.getLog(RetryInvocationHandler.class);
    private Object implementation;

    private RetryPolicy defaultPolicy;
    private Map<String, RetryPolicy> methodNameToPolicyMap;

From source file com.payu.ratel.proxy.monitoring.ServiceInvocationHandler.java

public class ServiceInvocationHandler implements java.lang.reflect.InvocationHandler {

    private final Object object;

    private final Collection<ServiceInstanceCallListener> serviceListeners = new LinkedList<>();