|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.director.Director
This static convinience class provides shortcuts to get to singleton classes and nonpersistent classes. It contains an instance of a FancyDirector class.
Field Summary | |
private static FancyDirector |
director
|
Constructor Summary | |
Director()
|
Method Summary | |
static java.lang.Class |
getClassForRole(java.lang.String role)
Return the concrete class to use for this particular interface. |
static java.lang.Object |
getObjectForRole(java.lang.String role)
Return an instance of an Object that can fulfil the role. |
static PropertySource |
getPropertySource()
Return the PropertySource. |
static java.lang.Object |
getSingletonForRole(java.lang.String role)
Return the singleton that can fulfil the role. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static FancyDirector director
Constructor Detail |
public Director()
Method Detail |
public static java.lang.Class getClassForRole(java.lang.String role)
role
- should match a director.ClassForRoleNotFoundException
- if the FancyDirector can not map the class to a role.public static java.lang.Object getObjectForRole(java.lang.String role)
role
- should 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 static java.lang.Object getSingletonForRole(java.lang.String role)
role
- should 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 static PropertySource getPropertySource()
ClassForRoleNotFoundException
- if the FancyDirector can not map the class to a role.CannotCreateException
- 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 |