|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Factory
Hook to create/obtain an instance of a component from somewhere, instead of letting the auto-depends create it via the constructor.
Factory is by itself a component, so the factory
implementation could have everything it needs injected.
Service| Method Summary | |
|---|---|
java.lang.Object |
getObject()
The system calls this method to obtain a reference to the component. |
| Method Detail |
|---|
java.lang.Object getObject()
throws ComponentException
ComponentException - If the factory failed to get/create an instance
and would like to propagate the error to the caller.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||