All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.weld.environment.tomcat.ForwardingInstanceManager Maven / Gradle / Ivy

Go to download

This jar bundles all the bits of Weld and CDI required for running in a Servlet container.

There is a newer version: 6.0.0.Beta4
Show newest version
package org.jboss.weld.environment.tomcat;

import java.lang.reflect.InvocationTargetException;

import javax.naming.NamingException;

import org.apache.tomcat.InstanceManager;

public abstract class ForwardingInstanceManager implements InstanceManager {

    protected abstract InstanceManager delegate();

    public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException {
        delegate().destroyInstance(o);
    }

    public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException {
        delegate().newInstance(o);
    }

    public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException {
        return delegate().newInstance(fqcn, classLoader);
    }

    public Object newInstance(String fqcn) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException {
        return delegate().newInstance(fqcn);
    }

    public Object newInstance(Class clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, NoSuchMethodException {
        return delegate().newInstance(clazz);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy