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 TypeMethodDescriptionvoid
Class<?>
getId()
Set<jakarta.enterprise.inject.spi.InjectionPoint>
getName()
int
getRank()
Class<? extends Annotation>
getScope()
Set<Class<? extends Annotation>>
getTypes()
boolean
boolean
protected 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, wait
Methods 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:
getTypes
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getQualifiers
- Specified by:
getQualifiers
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getName
- Specified by:
getName
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getScope
- Specified by:
getScope
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
getStereotypes
- Specified by:
getStereotypes
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
-
isAlternative
public boolean isAlternative()- Specified by:
isAlternative
in 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:
destroy
in interfacejakarta.enterprise.context.spi.Contextual<T>
-
getInjectionPoints
- Specified by:
getInjectionPoints
in interfacejakarta.enterprise.inject.spi.Bean<T>
-
getRank
public int getRank() -
getBeanClass
- Specified by:
getBeanClass
in interfacejakarta.enterprise.inject.spi.Bean<T>
-
getId
- Specified by:
getId
in interfacejakarta.enterprise.inject.spi.PassivationCapable
-