org.infinispan.cdi.common.util.DummyInjectionTarget Maven / Gradle / Ivy
package org.infinispan.cdi.common.util;
import static java.util.Collections.emptySet;
import java.util.Set;
import jakarta.enterprise.context.spi.CreationalContext;
import jakarta.enterprise.inject.spi.InjectionPoint;
import jakarta.enterprise.inject.spi.InjectionTarget;
/**
* Injection target implementation that does nothing
*
* @author Stuart Douglas
*/
public class DummyInjectionTarget implements InjectionTarget {
public void inject(T instance, CreationalContext ctx) {
}
public void postConstruct(T instance) {
}
public void preDestroy(T instance) {
}
public void dispose(T instance) {
}
public Set getInjectionPoints() {
return emptySet();
}
public T produce(CreationalContext ctx) {
return null;
}
}