|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceInjectionService
This service is responsible for injecting the Java EE injectable resources. Please see the Section 5 of the Java EE specification.
| Method Summary | ||
|---|---|---|
void |
clear()
Any clear functionality. |
|
|
getResourceReference(ResourceReference<X,T> resourceReference)
Gets resource for the given resource reference. |
|
void |
injectJavaEEResources(Object managedBeanInstance)
Container where OWB is deployed must responsible for injecting Java EE resources defined by this managed bean. |
|
|
readExternal(javax.enterprise.inject.spi.Bean<T> bean,
ObjectInput out)
delegation of serialization behavior |
|
|
writeExternal(javax.enterprise.inject.spi.Bean<T> bean,
T actualResource,
ObjectOutput out)
delegation of serialization behavior |
|
| Method Detail |
|---|
void injectJavaEEResources(Object managedBeanInstance)
This is only used for ManagedBean classes. It is not for injection Session Beans or any other Java EE components. Because those are already injected by the related container, for example EJB Container, Web Container etc.
managedBeanInstance - managed bean instance<X,T extends Annotation> X getResourceReference(ResourceReference<X,T> resourceReference)
This method is used for getting individual resource references that are defined by the ManagedBean producer fields. For example;
@Produces @MyPersistenceContext PersistenceContext EntityManager manager;
See section 3.5 of the JSR-299 specification.
T - resource type, @EJB, @Resource, @WebServiceRef,
@PersistenceContext or @PersistenceUnitresourceReference -
void clear()
This is called by the container at shutdown. Services may clear its caches or any other useful functionality.
<T> void writeExternal(javax.enterprise.inject.spi.Bean<T> bean,
T actualResource,
ObjectOutput out)
throws IOException
IOException
<T> T readExternal(javax.enterprise.inject.spi.Bean<T> bean,
ObjectInput out)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||