|
|||||||||
| 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 | |
|---|---|
Object |
getObject()
The system calls this method to obtain a reference to the component. |
| Method Detail |
|---|
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 | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 12-March-2010 04:35