|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.factory.FactoryTools
public class FactoryTools
| Constructor Summary | |
|---|---|
FactoryTools()
|
|
| Method Summary | |
|---|---|
static IFactory |
lookupFactory(Class clazz)
Lookup the IFactory instance for a factory class. |
static IFactory |
lookupFactory(String id,
ClassLoader classLoader)
Lookup the IFactory instance for an id. |
static IFactory |
lookupFactoryFor(Class clazz)
Lookup the IFactory instance for target object class. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactoryTools()
| Method Detail |
|---|
public static IFactory lookupFactory(Class clazz)
IFactory instance for a factory class. This tool
method assumes the IFactory instance is registered with its class
name.
If no such IFactory is registered, this method tries to create
and register a new one.
If no IFactory is registered and can't be created, null is
returned.
clazz -
IFactory instance for a factory class
public static IFactory lookupFactory(String id,
ClassLoader classLoader)
IFactory instance for an id.
If no such IFactory is registered, this method tries to create
and register a new one by interpreting the id as a class name.
If no IFactory is registered and can't be created, null is
returned.
id - classLoader -
IFactory instance for an id.public static IFactory lookupFactoryFor(Class clazz)
IFactory instance for target object class. This method
tries to derive the factory by searching the IFactory with
appropriate types. If not available it tries to lookup an
IFactory by appending "Factory" to the clazz name and using it as
an id.
If no such IFactory is registered, this method tries to create
and register a new one by interpreting the id as a class name.
If no IFactory is registered and can't be created, null is
returned.
clazz -
IFactory instance for target object class
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||