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

org.jboss.weld.injection.ForwardingInjectionTarget Maven / Gradle / Ivy

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

import java.util.Set;

import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.spi.InjectionPoint;
import javax.enterprise.inject.spi.InjectionTarget;

/**
 * @author Stuart Douglas
 */
public abstract class ForwardingInjectionTarget implements InjectionTarget{

    protected abstract InjectionTarget delegate();

    public void inject(final T instance, final CreationalContext ctx) {
        delegate().inject(instance, ctx);
    }

    public void postConstruct(final T instance) {
        delegate().postConstruct(instance);
    }

    public void preDestroy(final T instance) {
        delegate().preDestroy(instance);
    }

    public T produce(final CreationalContext ctx) {
        return delegate().produce(ctx);
    }

    public void dispose(final T instance) {
        delegate().dispose(instance);
    }

    public Set getInjectionPoints() {
        return delegate().getInjectionPoints();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy