|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This optional interface lets you create a custom map between roles and classes that fill those rolls. The default implementation, GenericDirector, uses {lyophil.home}/lyophil.properties to define the map.
| Field Summary | |
static java.lang.String |
DIRECTOR
|
| 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. |
| Field Detail |
public static final java.lang.String DIRECTOR
| Method Detail |
public java.lang.Class getClassForRole(java.lang.String role)
role - The name of a defined role. It should normally match a director.ClassForRoleNotFoundException - if the FancyDirector can not map the class to a role.public java.lang.Object getObjectForRole(java.lang.String role)
role - The name of a defined role. It should normally match a director.ClassForRoleNotFoundException - if the FancyDirector can not map the class to a role.CannotCreateException - if the FancyDirector can not construct the object.public java.lang.Object getSingletonForRole(java.lang.String role)
role - The name of a defined role. It should normally match a director.ClassForRoleNotFoundException - if the FancyDirector can not map the class to a role.CannotCreateException - if the FancyDirector can not construct the object.public PropertySource getPropertySource()
ClassForRoleNotFoundException - if the FancyDirector can not map the class to a role.CannotConstructObjectException - if the FancyDirector can not construct the object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||