public abstract class BaseBoxResourceHub extends java.lang.Object implements IBoxResourceHub
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,IBoxType> |
lowercaseStringToType |
| Constructor and Description |
|---|
BaseBoxResourceHub() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getClass(IBoxType type)
Given a
IBoxType, get the corrosponding DAO class. |
protected abstract java.lang.Class |
getConcreteClassForIBoxType()
Get the concrete class for IBoxType
|
protected java.util.Map<java.lang.String,IBoxType> |
getLowerCaseStringToTypeMap() |
protected abstract java.lang.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(java.lang.Class<? extends java.lang.Enum> cls) |
protected void |
initializeTypes()
Do call super.initializeTypes() when overriding this.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllTypes, getTypeFromLowercaseStringprotected final java.util.Map<java.lang.String,IBoxType> lowercaseStringToType
public java.lang.Class getClass(IBoxType type)
IBoxResourceHubIBoxType, get the corrosponding DAO class.getClass in interface IBoxResourceHubtype - resource typeprotected java.util.Map<java.lang.String,IBoxType> getLowerCaseStringToTypeMap()
protected abstract java.lang.Class getConcreteClassForIBoxType()
protected abstract java.lang.Class getObjectClassGivenConcreteIBoxType(IBoxType type)
type - protected void initializeTypes()
protected void initializeEnumTypes(java.lang.Class<? extends java.lang.Enum> cls)