org.jboss.weld.injection.ForwardingInjectionTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-osgi-bundle Show documentation
Show all versions of weld-osgi-bundle Show documentation
Weld runtime packaged as an OSGi bundle
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();
}
}