public abstract class BaseBoxResourceHub extends Object implements IBoxResourceHub
Constructor and Description |
---|
BaseBoxResourceHub() |
Modifier and Type | Method and Description |
---|---|
Class |
getClass(IBoxType type)
Given a
IBoxType , get the corrosponding DAO class. |
protected abstract Class |
getConcreteClassForIBoxType()
Get the concrete class for IBoxType
|
protected Map<String,IBoxType> |
getLowerCaseStringToTypeMap() |
protected abstract Class |
getObjectClassGivenConcreteIBoxType(IBoxType type)
Get class for a certain type, assuming the input type is an object of the concrete class of IBoxType defined in
this resource hub.
|
protected void |
initializeEnumTypes(Class<? extends Enum> cls) |
protected void |
initializeTypes()
Do call super.initializeTypes() when overriding this.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllTypes, getTypeFromLowercaseString
public BaseBoxResourceHub()
public Class getClass(IBoxType type)
IBoxResourceHub
IBoxType
, get the corrosponding DAO class.getClass
in interface IBoxResourceHub
type
- resource typeprotected Map<String,IBoxType> getLowerCaseStringToTypeMap()
protected abstract Class getConcreteClassForIBoxType()
protected abstract Class getObjectClassGivenConcreteIBoxType(IBoxType type)
type
- protected void initializeTypes()
protected void initializeEnumTypes(Class<? extends Enum> cls)
Copyright © 2015 Nuxeo SA. All rights reserved.