|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectFactory
An interface to object factories providing a set of factory methods required
by registration to Factory.
| Method Summary | |
|---|---|
Object |
getInstance(String className)
Gets an instance of a named class. |
Object |
getInstance(String className,
Object[] params,
String[] signature)
Gets an instance of a named class. |
Object |
getInstance(String className,
ObjectName loader)
Gets an instance of a named class using a specified class loader. |
Object |
getInstance(String className,
ObjectName loader,
Object[] params,
String[] signature)
Gets an instance of a named class using a specified class loader. |
boolean |
isLoaderSupported(String className)
Checks if specified class loaders are supported for a named class. |
| Method Detail |
|---|
Object getInstance(String className)
throws ConstructionException
className - the name of the class.
ConstructionException - if construction fails.
Object getInstance(String className,
ObjectName loader)
throws ConstructionException
Class loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.
className - the name of the class.loader - the class loader.
ConstructionException - if construction fails.
Object getInstance(String className,
Object[] params,
String[] signature)
throws ConstructionException
className - the name of the class.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
ConstructionException - if construction fails.
Object getInstance(String className,
ObjectName loader,
Object[] params,
String[] signature)
throws ConstructionException
Class loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.
className - the name of the class.loader - the class loader.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
ConstructionException - if construction fails.boolean isLoaderSupported(String className)
className - the name of the class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||