public abstract class JerseyBean<T> extends Object implements jakarta.enterprise.inject.spi.Bean<T>, jakarta.enterprise.inject.spi.PassivationCapable
Bean
interface. Class particularly contains default implementations
of Bean
interface.Modifier and Type | Method and Description |
---|---|
void |
destroy(T instance,
jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) |
Class<?> |
getBeanClass() |
String |
getId() |
Set<jakarta.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints() |
String |
getName() |
Set<Annotation> |
getQualifiers() |
int |
getRank() |
Class<? extends Annotation> |
getScope() |
Set<Class<? extends Annotation>> |
getStereotypes() |
Set<Type> |
getTypes() |
boolean |
isAlternative() |
boolean |
isNullable() |
protected static Class<? extends Annotation> |
transformScope(Class<? extends Annotation> scope)
Transforms Jersey scopes/annotations to HK2 equivalents.
|
protected static Class<? extends Annotation> transformScope(Class<? extends Annotation> scope)
scope
- Jersey scope/annotation.public Set<Type> getTypes()
getTypes
in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
public Set<Annotation> getQualifiers()
getQualifiers
in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
public String getName()
getName
in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
public Class<? extends Annotation> getScope()
getScope
in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
public Set<Class<? extends Annotation>> getStereotypes()
getStereotypes
in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
public boolean isAlternative()
isAlternative
in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
public boolean isNullable()
isNullable
in interface jakarta.enterprise.inject.spi.Bean<T>
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
destroy
in interface jakarta.enterprise.context.spi.Contextual<T>
public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface jakarta.enterprise.inject.spi.Bean<T>
public int getRank()
public Class<?> getBeanClass()
getBeanClass
in interface jakarta.enterprise.inject.spi.Bean<T>
public String getId()
getId
in interface jakarta.enterprise.inject.spi.PassivationCapable
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.