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.springframework.ldap.transaction.compensating.manager.TransactionAwareDirContextInvocationHandler.java

/**
 * Proxy implementation for DirContext, making sure that the instance is not
 * closed during a transaction, and that all modifying operations are recorded,
 * storing compensating rollback operations for them.
 * 
 * @author Mattias Hellborg Arthursson

From source file be.fgov.kszbcss.rhq.websphere.connector.FailFastInvocationHandler.java

public class FailFastInvocationHandler implements InvocationHandler {
    private static final Log log = LogFactory.getLog(FailFastInvocationHandler.class);

    private final AdminClient target;
    private long lastConnectorNotAvailableException = -1;

From source file de.anhquan.config4j.internal.ConfigHandler.java

public class ConfigHandler implements InvocationHandler {

    static final Pattern GETTER_REG = Pattern.compile("^(is|get)(.+)$");
    static final Pattern SETTER_REG = Pattern.compile("^(set)(.+)$");

    private Configuration configuration;

From source file org.apache.camel.component.bean.CamelInvocationHandler.java

/**
 * An {@link java.lang.reflect.InvocationHandler} which invokes a
 * message exchange on a camel {@link Endpoint}
 *
 * @version $Revision$
 */

From source file therian.cdi.internal.MapperHandler.java

public class MapperHandler implements InvocationHandler {
    private final Map<Method, Meta<?, ?>> mapping;
    private final String toString;

    public MapperHandler(final AnnotatedType<?> type) {
        // just for error handling

From source file org.jsmiparser.util.problem.ProblemInvocationHandler.java

public class ProblemInvocationHandler<T> implements InvocationHandler {

    private ProblemEventHandler m_problemEventHandler;
    private Map<Method, MethodInvocationHandler> m_methodInvocationHandlerMap = new HashMap<Method, MethodInvocationHandler>();

    public ProblemInvocationHandler(Class<T> cl, ProblemEventHandler eh) {

From source file SqlNullCheckedResultSet.java

/**
 * Decorates a <code>ResultSet</code> with checks for a SQL NULL value on each
 * <code>getXXX</code> method. If a column value obtained by a
 * <code>getXXX</code> method is not SQL NULL, the column value is returned.
 * If the column value is SQL null, an alternate value is returned. The
 * alternate value defaults to the Java <code>null</code> value, which can be

From source file org.pentaho.di.core.auth.kerberos.LoginContextInvocationHandler.java

public class LoginContextInvocationHandler<T> implements InvocationHandler {
    private final T delegate;
    private final LoginContext loginContext;
    private final Set<Class<?>> interfacesToDelegate;

    public LoginContextInvocationHandler(T delegate, LoginContext loginContext) {

From source file be.fgov.kszbcss.rhq.websphere.connector.LazyAdminClientInvocationHandler.java

public class LazyAdminClientInvocationHandler implements InvocationHandler {
    private static final Log log = LogFactory.getLog(LazyAdminClientInvocationHandler.class);

    private final AdminClientProvider provider;
    private long lastAttempt = -1;
    private AdminClient target;

From source file org.pentaho.di.ui.repo.RepositorySessionTimeoutHandler.java

public class RepositorySessionTimeoutHandler implements InvocationHandler {

    private static final String CONNECT_METHOD_NAME = "connect";

    private static final String GET_META_STORE_METHOD_NAME = "getMetaStore";