|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.droids.helper.Loggable
org.apache.droids.helper.factories.GenericFactory<T>
public class GenericFactory<T>
Basically all factories till now extend this generic factory. The core is a simple Map.
| Field Summary |
|---|
| Fields inherited from class org.apache.droids.helper.Loggable |
|---|
log |
| Constructor Summary | |
|---|---|
GenericFactory()
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,T> |
getMap()
Get the register which contains all components. |
T |
resolve(java.lang.String name)
Will lookup which component is linked to the name and will return it. |
void |
setMap(java.util.Map map)
Set the register which contains all components. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericFactory()
| Method Detail |
|---|
public java.util.Map<java.lang.String,T> getMap()
public void setMap(java.util.Map map)
map - the register which contains all components.public T resolve(java.lang.String name)
name - -the name of the component you need.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||