|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InjectionProvider
This interface defines an integration point for Java EE vendors. Each vendor will need to provide an implementation of this interface which will provide the JSF implementation the necessary hooks to perform resource injection.
The implementation of this interface *must* be thread-safe and must have a no-arg constructor.
| Method Summary | |
|---|---|
void |
inject(java.lang.Object managedBean)
The implementation of this method must perform the following steps: Inject the supported resources per the Servlet 2.5 specification into the provided object Inoke any method marked with the @PostConstruct
annotation (per the Common Annotations Specification)
|
void |
invokePreDestroy(java.lang.Object managedBean)
The implemenation of this method must invoke any method marked with the @PreDestroy annotation
(per the Common Annotations Specification). |
| Method Detail |
|---|
void inject(java.lang.Object managedBean)
throws InjectionProviderException
The implementation of this method must perform the following steps:
@PostConstruct
annotation (per the Common Annotations Specification)
managedBean - the target managed bean
InjectionProviderException - if an error occurs during
resource injection
void invokePreDestroy(java.lang.Object managedBean)
throws InjectionProviderException
The implemenation of this method must invoke any
method marked with the @PreDestroy annotation
(per the Common Annotations Specification).
managedBean - the target managed bean
InjectionProviderException - if an error occurs when invoking
the method annotated by the @PreDestroy annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||