org.jboss.weld.bootstrap.ContextHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
package org.jboss.weld.bootstrap;
import javax.enterprise.context.spi.Context;
import java.lang.annotation.Annotation;
import java.util.Set;
public class ContextHolder {
private final T context;
private final Class type;
private final Set qualifiers;
public ContextHolder(T context, Class type, Set qualifiers) {
this.context = context;
this.type = type;
this.qualifiers = qualifiers;
}
public T getContext() {
return context;
}
public Class getType() {
return type;
}
public Set getQualifiers() {
return qualifiers;
}
}