com.bstek.dorado.data.config.definition
public class DataTypeDefinition extends ListenableObjectDefinition implements Namable
DataType
ObjectDefinition.CreationInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RESOURCE_RELATIVE_DEFINITION |
Constructor and Description |
---|
DataTypeDefinition() |
DataTypeDefinition(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyDef(PropertyDefDefinition propertyDef)
向DataType的声明中添加一个属性声明对象。
|
void |
addPropertyDef(java.lang.String name,
PropertyDefDefinition propertyDef)
Deprecated.
|
protected java.lang.Object |
doCreate(CreationContext context,
java.lang.Object[] constructorArgs) |
protected void |
doInitObject(java.lang.Object object,
ObjectDefinition.CreationInfo creationInfo,
CreationContext context) |
java.lang.Class<?> |
getCreationType()
返回DataType的相匹配的可实例化类型。
|
protected ExpressionHandler |
getExpressionHandler(Context doradoContext) |
java.lang.String |
getId() |
java.lang.Class<?> |
getMatchType()
返回DataType的相匹配类型。
|
java.lang.String |
getName()
返回DataType的名称。
|
PropertyDefDefinition |
getPropertyDef(java.lang.String name)
根据名称返回一个属性声明对象。
|
java.util.Map<java.lang.String,PropertyDefDefinition> |
getPropertyDefs()
返回DataType声明中所有的属性声明对象的Map集合。
其中Map集合的键为属性声明的名称,值为相应的属性声明对象。 |
protected void |
initCreationInfo(ObjectDefinition.CreationInfo creationInfo,
ObjectDefinition definition,
boolean processConstrInfos)
初始化对象创建信息。
即将本配置声明对象中定义的各种信息包括从父对象中继承而来的信息收集到createInfo参数所指定的对象中,以便于创建创建最终对象。 |
protected void |
injectResourceString(EntityDataType dataType,
java.lang.String key,
java.lang.String resourceString) |
boolean |
isAggregationType() |
boolean |
isGlobal() |
void |
setCacheCreatedObject(boolean cacheCreatedObject) |
void |
setCreationType(java.lang.Class<?> creationType)
返回DataType的相匹配的可实例化类型。
|
void |
setGlobal(boolean global)
Deprecated.
|
void |
setMatchType(java.lang.Class<?> matchType)
设置DataType的相匹配类型。
|
void |
setName(java.lang.String name)
设置DataType的名称。
|
protected void |
setObjectProperty(java.lang.Object object,
java.lang.String property,
java.lang.Object value,
CreationContext context)
将一个属性值初始化到给定的对象中。
|
filterGlobalListener, getListener, initObject, invokePrivateListener, invokePrivateListeners, preinitObject, setListener
createExpressionMethodInterceptor, getFinalValueOrExpression
createObject, getBeanId, getConstructorArgTypes, getImpl, getImplType, getMethodInterceptors, getParentReferences, getParents, getScope, isCacheCreatedObject, setBeanId, setConstructorArgTypes, setImpl, setImplType, setParent, setParentReference, setParentReferences, setParents, setScope
addInitOperation, clone, create, create, executeInitOperations, getDependentResources, getInitOperations, getProperties, getProperty, getResource, initProperties, removeProperty, setDependentResources, setProperties, setProperty, setResource
public static final java.lang.String RESOURCE_RELATIVE_DEFINITION
public DataTypeDefinition()
public DataTypeDefinition(java.lang.String name)
public void setCacheCreatedObject(boolean cacheCreatedObject)
setCacheCreatedObject
in class ObjectDefinition
public void setName(java.lang.String name)
public java.lang.String getId()
public boolean isAggregationType()
public java.lang.Class<?> getMatchType()
public void setMatchType(java.lang.Class<?> matchType)
public java.lang.Class<?> getCreationType()
public void setCreationType(java.lang.Class<?> creationType)
public boolean isGlobal()
@Deprecated public void setGlobal(boolean global)
public void addPropertyDef(PropertyDefDefinition propertyDef)
name
- 属性声明的名称propertyDef
- 要添加的属性声明对象@Deprecated public void addPropertyDef(java.lang.String name, PropertyDefDefinition propertyDef)
public PropertyDefDefinition getPropertyDef(java.lang.String name)
name
- 属性声明的名称public java.util.Map<java.lang.String,PropertyDefDefinition> getPropertyDefs()
protected java.lang.Object doCreate(CreationContext context, java.lang.Object[] constructorArgs) throws java.lang.Exception
doCreate
in class ObjectDefinition
java.lang.Exception
protected ExpressionHandler getExpressionHandler(Context doradoContext) throws java.lang.Exception
java.lang.Exception
protected void injectResourceString(EntityDataType dataType, java.lang.String key, java.lang.String resourceString) throws java.lang.Exception
java.lang.Exception
protected void doInitObject(java.lang.Object object, ObjectDefinition.CreationInfo creationInfo, CreationContext context) throws java.lang.Exception
doInitObject
in class ListenableObjectDefinition
java.lang.Exception
protected void initCreationInfo(ObjectDefinition.CreationInfo creationInfo, ObjectDefinition definition, boolean processConstrInfos) throws java.lang.Exception
ObjectDefinition
initCreationInfo
in class ListenableObjectDefinition
java.lang.Exception
protected void setObjectProperty(java.lang.Object object, java.lang.String property, java.lang.Object value, CreationContext context) throws java.lang.Exception
Definition
setObjectProperty
in class Definition
object
- 被初始化的对象。property
- 属性名。value
- 属性值。@see Definition.getProperties()
context
- 创建最终对象的上下文。java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.