public class RestClientDelegateBean extends Object implements Bean<Object>, PassivationCapable
Modifier and Type | Field and Description |
---|---|
static String |
HOSTNAME_VERIFIER |
static String |
KEY_STORE |
static String |
KEY_STORE_PASSWORD |
static String |
KEY_STORE_TYPE |
static String |
REST_CONNECT_TIMEOUT_FORMAT |
static String |
REST_PROVIDERS |
static String |
REST_READ_TIMEOUT_FORMAT |
static String |
REST_SCOPE_FORMAT |
static String |
REST_URI_FORMAT |
static String |
REST_URL_FORMAT |
static String |
TRUST_STORE |
static String |
TRUST_STORE_PASSWORD |
static String |
TRUST_STORE_TYPE |
Modifier and Type | Method and Description |
---|---|
Object |
create(CreationalContext<Object> creationalContext)
Create a new instance of the contextual type.
|
void |
destroy(Object instance,
CreationalContext<Object> creationalContext)
Destroy an instance of the contextual type.
|
Class<?> |
getBeanClass()
The bean class of the managed bean or session bean or of the bean that declares the producer method or
field.
|
String |
getId()
A string that uniquely identifies the instance of
Bean or
Contextual . |
Set<InjectionPoint> |
getInjectionPoints()
Obtains the
InjectionPoint objects representing injection points of the bean, that
will be validated by the container at initialization time. |
String |
getName()
Obtains the EL name of a bean, if it has one.
|
Set<Annotation> |
getQualifiers()
Obtains the qualifiers of the bean.
|
Class<? extends Annotation> |
getScope()
Obtains the scope of the bean.
|
Set<Class<? extends Annotation>> |
getStereotypes()
Obtains the stereotypes of the bean.
|
Set<Type> |
getTypes()
Obtains the bean types of the bean.
|
boolean |
isAlternative()
Determines if the bean is an alternative.
|
boolean |
isNullable()
Determines if
Contextual.create(CreationalContext) sometimes return a null value. |
public static final String REST_URL_FORMAT
public static final String REST_URI_FORMAT
public static final String REST_SCOPE_FORMAT
public static final String REST_CONNECT_TIMEOUT_FORMAT
public static final String REST_READ_TIMEOUT_FORMAT
public static final String REST_PROVIDERS
public static final String TRUST_STORE
public static final String TRUST_STORE_PASSWORD
public static final String TRUST_STORE_TYPE
public static final String KEY_STORE
public static final String KEY_STORE_PASSWORD
public static final String KEY_STORE_TYPE
public static final String HOSTNAME_VERIFIER
public String getId()
PassivationCapable
Bean
or
Contextual
. It is recommended that the string contain the package name of the class
that implements Bean
or Contextual
.getId
in interface PassivationCapable
Bean
or
Contextual
public Class<?> getBeanClass()
Bean
getBeanClass
in interface Bean<Object>
public Set<InjectionPoint> getInjectionPoints()
Bean
InjectionPoint
objects representing injection points of the bean, that
will be validated by the container at initialization time.getInjectionPoints
in interface Bean<Object>
public boolean isNullable()
Bean
Determines if Contextual.create(CreationalContext)
sometimes return a null value.
As of CDI 1.1 this method is deprecated and can safely always return false.
isNullable
in interface Bean<Object>
create()
method may return a null value, and false otherwisepublic Object create(CreationalContext<Object> creationalContext)
Contextual
CreationalContext
when obtaining contextual references to inject, in order to ensure
that any dependent objects are associated with the contextual instance that is being created. An implementation may call
CreationalContext.push(Object)
between instantiation and injection to help the
container minimize the use of client proxy objects.create
in interface Contextual<Object>
creationalContext
- the context in which this instance is being createdpublic void destroy(Object instance, CreationalContext<Object> creationalContext)
Contextual
CreationalContext.release()
to allow the container to destroy dependent objects of
the contextual instance.destroy
in interface Contextual<Object>
instance
- the contextual instance to destroycreationalContext
- the context in which this instance was createdpublic Set<Type> getTypes()
BeanAttributes
getTypes
in interface BeanAttributes<Object>
public Set<Annotation> getQualifiers()
BeanAttributes
getQualifiers
in interface BeanAttributes<Object>
public Class<? extends Annotation> getScope()
BeanAttributes
getScope
in interface BeanAttributes<Object>
public String getName()
BeanAttributes
getName
in interface BeanAttributes<Object>
public Set<Class<? extends Annotation>> getStereotypes()
BeanAttributes
getStereotypes
in interface BeanAttributes<Object>
public boolean isAlternative()
BeanAttributes
Bean
may implement Prioritized
in order to be selected for the application.
Prioritized.getPriority()
determines the priority used to resolve ambiguities.isAlternative
in interface BeanAttributes<Object>
Copyright © 2019 JBoss by Red Hat. All rights reserved.