| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.walend.director.GenericDirector
This class implemetns a simple FancyDirector driven off of the director.properties file. The system property, propertysource.class, sets the class of the initial PropertySource that the GenericDirector uses for everything.
| Field Summary | |
protected  Map | 
rolesToClasses
Maps roles (as Strings) to classes.  | 
protected  MutableMap | 
rolesToSingletons
Maps roles (as classes) to objects.  | 
private  java.lang.Object | 
singletonGuard
Any access to rolesToSingletons should happen within the bounds of this guard.  | 
| Fields inherited from interface net.walend.director.FancyDirector | 
DIRECTOR | 
| Constructor Summary | |
GenericDirector()
 | 
|
| Method Summary | |
 java.lang.Class | 
getClassForRole(java.lang.String role)
Return the concrete class to use for this particular interface.  | 
 java.lang.Object | 
getObjectForRole(java.lang.String role)
Return an instance of an Object that can fulfil the role.  | 
 PropertySource | 
getPropertySource()
Return the PropertySource.  | 
 java.lang.Object | 
getSingletonForRole(java.lang.String role)
Return an instance of an Object that can fulfil the role.  | 
private  java.lang.Object | 
getSingletonGuard()
Use this method to access the singeltonGuard.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected Map rolesToClasses
protected MutableMap rolesToSingletons
private final java.lang.Object singletonGuard
| Constructor Detail | 
public GenericDirector()
<{PropertyException}>| Method Detail | 
private java.lang.Object getSingletonGuard()
public java.lang.Class getClassForRole(java.lang.String role)
FancyDirector
getClassForRole in interface FancyDirectornet.walend.director.FancyDirectorrole - The name of a defined role. It should normally match a director.public java.lang.Object getObjectForRole(java.lang.String role)
FancyDirector
getObjectForRole in interface FancyDirectornet.walend.director.FancyDirectorrole - The name of a defined role. It should normally match a director.public java.lang.Object getSingletonForRole(java.lang.String role)
FancyDirector
getSingletonForRole in interface FancyDirectornet.walend.director.FancyDirectorrole - The name of a defined role. It should normally match a director.public PropertySource getPropertySource()
FancyDirector
getPropertySource in interface FancyDirector
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||