| java.lang.Object com.silvermindsoftware.hitch.handlers.ComponentHandlerFactory
ComponentHandlerFactory | public class ComponentHandlerFactory (Code) | | |
ComponentHandlerFactory | public ComponentHandlerFactory()(Code) | | |
getHandler | public ComponentHandler getHandler(Object key)(Code) | | Looks in the registry for a suitable handler instance based on the 'key'. If no exact match
is found and key is of type Class, then we look for a superclass of 'key'. If we find a
match, we return it, and register it's handler under the subclass so future lookups are fast.
Parameters: key - - generally a class (will it ever not be a class?) the ComponentHandler for the key |
getHandlerType | public Class getHandlerType(Class componentType)(Code) | | Get the class that will be responsible for handling a particular component.
Parameters: componentType - the component to look up the class that will handle this component |
register | public void register(Object key, ComponentHandler componentHandler)(Code) | | Register a component handler instance for a key (generally a class)
Parameters: key - the key Parameters: componentHandler - the component instance that will handle data mapping for the key |
|
|