All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----uhr.core.role.DelegatorLib
public DelegatorLib()
public static Object extractDelegate(String name,
Class type,
Object object)
1. If the object implements Delegator and has a delegate for the name, return the delegate. If the delegate doesn't implement the type interface, an IllegalStateException is thrown since this is a programming bug. If the object doesn't have the delegate we got to the next step.2. Otherwise if the object implements the type, the object is returned.
3. Otherwise the object doesn't support the interface implied by the type, and so null is returned.
All Packages Class Hierarchy This Package Previous Next Index