Class JerseyBean<T>
java.lang.Object
org.glassfish.jersey.inject.cdi.se.bean.JerseyBean<T>
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.inject.spi.PassivationCapable
- Direct Known Subclasses:
SupplierThreadScopeBean
public abstract class JerseyBean<T>
extends Object
implements jakarta.enterprise.inject.spi.Bean<T>, jakarta.enterprise.inject.spi.PassivationCapable
Jersey-specific abstract class which implements
Bean interface. Class particularly contains default implementations
of Bean interface.- Author:
- Petr Bouda
-
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>getId()Set<jakarta.enterprise.inject.spi.InjectionPoint>getName()intgetRank()Class<? extends Annotation>getScope()Set<Class<? extends Annotation>>getTypes()booleanbooleanprotected static Class<? extends Annotation>transformScope(Class<? extends Annotation> scope) Transforms Jersey scopes/annotations to HK2 equivalents.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.enterprise.context.spi.Contextual
create
-
Method Details
-
transformScope
Transforms Jersey scopes/annotations to HK2 equivalents.- Parameters:
scope- Jersey scope/annotation.- Returns:
- HK2 equivalent scope/annotation.
-
getTypes
- Specified by:
getTypesin interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getQualifiers
- Specified by:
getQualifiersin interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getName
- Specified by:
getNamein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getScope
- Specified by:
getScopein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getStereotypes
- Specified by:
getStereotypesin interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
isAlternative
public boolean isAlternative()- Specified by:
isAlternativein interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
isNullable
public boolean isNullable() -
destroy
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) - Specified by:
destroyin interfacejakarta.enterprise.context.spi.Contextual<T>
-
getInjectionPoints
- Specified by:
getInjectionPointsin interfacejakarta.enterprise.inject.spi.Bean<T>
-
getRank
public int getRank() -
getBeanClass
- Specified by:
getBeanClassin interfacejakarta.enterprise.inject.spi.Bean<T>
-
getId
- Specified by:
getIdin interfacejakarta.enterprise.inject.spi.PassivationCapable
-