public class ResourceHandlerLocator extends Object
Constructor and Description |
---|
ResourceHandlerLocator() |
Modifier and Type | Method and Description |
---|---|
void |
addAssoziation(Class<?> resourceClazz,
Object resourceHandler)
This method does the assigning of the resource classes and the handler
|
static ResourceHandlerLocator |
getInstance() |
Object |
getResourceHandler(Class<?> resourceClazz)
This method returns a assigned handle by a class
|
public static ResourceHandlerLocator getInstance()
public Object getResourceHandler(Class<?> resourceClazz)
resourceClazz
- - is the class of which you want to have the handlerpublic void addAssoziation(Class<?> resourceClazz, Object resourceHandler)
resourceClazz
- - the resource class that should be assigned to a handlerresourceHandler
- - the handler class that should be assigned to a resourceCopyright © 2019 Communote team. All rights reserved.