BeanReferenceInspectable, Replicable<BeanRule>public class BeanRule extends java.lang.Object implements Replicable<BeanRule>, BeanReferenceInspectable
Created: 2009. 03. 09 PM 23:48:09
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CLASS_DIRECTIVE_PREFIX |
| Constructor | Description |
|---|---|
BeanRule() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAutowireRule(AutowireRule autowireRule) |
|
void |
addConstructorArgumentItemRule(ItemRule constructorArgumentItemRule) |
Adds the constructor argument item rule.
|
void |
addPropertyItemRule(ItemRule propertyItemRule) |
Adds the property item rule.
|
java.util.List<AutowireRule> |
getAutowireRuleList() |
|
java.lang.Class<?> |
getBeanClass() |
Gets the bean class.
|
BeanRefererType |
getBeanRefererType() |
|
java.lang.String |
getClassName() |
Gets the class type.
|
ItemRuleMap |
getConstructorArgumentItemRuleMap() |
Gets the constructor argument item rule map.
|
java.lang.String |
getDescription() |
Gets the description of this bean.
|
java.lang.reflect.Method |
getDestroyMethod() |
Returns the destroy method.
|
java.lang.String |
getDestroyMethodName() |
Returns the destroy method name.
|
java.lang.Class<?> |
getFactoryBeanClass() |
Gets factory bean class.
|
java.lang.String |
getFactoryBeanId() |
Gets the factory bean id.
|
java.lang.reflect.Method |
getFactoryMethod() |
|
java.lang.String |
getFactoryMethodName() |
Gets the factory method name.
|
Parameters |
getFilterParameters() |
Gets the filter parameters.
|
java.lang.String |
getId() |
Returns the bean id.
|
java.lang.Boolean |
getImportant() |
Returns whether this bean is important.
|
java.lang.reflect.Method |
getInitMethod() |
Returns the initialization method.
|
java.lang.String |
getInitMethodName() |
Returns the initialization method name.
|
InstantiatedBean |
getInstantiatedBean() |
Returns the instantiated object of this bean.
|
java.lang.Boolean |
getLazyInit() |
Returns whether this bean is to be lazily initialized.
|
java.lang.String |
getMaskPattern() |
Gets the mask pattern.
|
ItemRuleMap |
getPropertyItemRuleMap() |
Gets the property item rule map.
|
java.lang.String |
getScanPattern() |
Gets the scan pattern.
|
ScopeType |
getScopeType() |
Gets the scope type.
|
java.lang.Boolean |
getSingleton() |
Returns whether this bean is a singleton.
|
java.lang.Class<?> |
getTargetBeanClass() |
|
java.lang.String |
getTargetBeanClassName() |
|
boolean |
isDisposableBean() |
Returns whether this bean implements DisposableBean.
|
boolean |
isFactoryBean() |
Returns whether this bean implements FactoryBean.
|
boolean |
isFactoryMethodRequiresTranslet() |
|
boolean |
isFactoryOffered() |
|
boolean |
isFactoryProductionRequired() |
|
boolean |
isFieldAutowireParsed() |
|
boolean |
isImportant() |
Returns whether this bean is important.
|
boolean |
isInitializableBean() |
Returns whether this bean implements InitializableBean.
|
boolean |
isInitializableTransletBean() |
Returns whether this bean implements InitializableTransletBean.
|
boolean |
isInitMethodRequiresTranslet() |
Returns whether the initialization method requires the Translet argument.
|
boolean |
isLazyInit() |
Returns whether this bean is to be lazily initialized.
|
boolean |
isMethodAutowireParsed() |
|
boolean |
isProxiable() |
Returns whether this bean can be proxied.
|
boolean |
isProxied() |
Returns whether this bean is proxied.
|
boolean |
isReplicated() |
Returns whether this bean has been replicated.
|
boolean |
isSingleton() |
Returns whether this bean is a singleton.
|
ItemRule |
newConstructorArgumentItemRule() |
Adds a new constructor argument item rule and returns it.
|
static BeanRule |
newInstance(java.lang.String id,
java.lang.String className,
java.lang.String scanPattern,
java.lang.String maskPattern,
java.lang.String initMethodName,
java.lang.String destroyMethodName,
java.lang.String factoryMethodName,
java.lang.String scope,
java.lang.Boolean singleton,
java.lang.Boolean lazyInit,
java.lang.Boolean important) |
|
static BeanRule |
newOfferedFactoryBeanInstance(java.lang.String id,
java.lang.String factoryBeanId,
java.lang.String factoryMethodName,
java.lang.String initMethodName,
java.lang.String destroyMethodName,
java.lang.String scope,
java.lang.Boolean singleton,
java.lang.Boolean lazyInit,
java.lang.Boolean important) |
|
ItemRule |
newPropertyItemRule(java.lang.String propertyName) |
Adds a new property rule with the specified name and returns it.
|
BeanRule |
replicate() |
Creates and returns a new instance after replicating a rule or Object.
|
static BeanRule |
replicate(BeanRule beanRule) |
|
void |
setBeanClass(java.lang.Class<?> beanClass) |
Sets the bean class.
|
void |
setClassName(java.lang.String className) |
Sets the class type.
|
void |
setConstructorArgumentItemRuleMap(ItemRuleMap constructorArgumentItemRuleMap) |
Sets the constructor argument item rule map.
|
void |
setDescription(java.lang.String description) |
Sets the description of this bean.
|
void |
setDestroyMethod(java.lang.reflect.Method destroyMethod) |
Sets the destroy method.
|
void |
setDestroyMethodName(java.lang.String destroyMethodName) |
Sets the destroy method name.
|
void |
setFactoryBeanClass(java.lang.Class<?> factoryBeanClass) |
Sets factory bean class.
|
void |
setFactoryBeanId(java.lang.String factoryBeanId) |
Sets the factory bean id.
|
void |
setFactoryMethod(java.lang.reflect.Method factoryMethod) |
|
void |
setFactoryMethodName(java.lang.String factoryMethodName) |
Sets the factory method name.
|
void |
setFactoryMethodRequiresTranslet(boolean factoryMethodRequiresTranslet) |
|
void |
setFactoryOffered(boolean factoryOffered) |
|
void |
setFieldAutowireParsed(boolean fieldAutowireParsed) |
|
void |
setFilterParameters(Parameters filterParameters) |
Sets the filter parameters.
|
void |
setId(java.lang.String id) |
Sets the bean id.
|
void |
setImportant(java.lang.Boolean important) |
Sets whether this bean is important.
|
void |
setInitMethod(java.lang.reflect.Method initMethod) |
Sets the initialization method.
|
void |
setInitMethodName(java.lang.String initMethodName) |
Sets the initialization method name.
|
void |
setInitMethodRequiresTranslet(boolean initMethodRequiresTranslet) |
Sets whether the initialization method requires the Translet argument.
|
void |
setInstantiatedBean(InstantiatedBean instantiatedBean) |
Sets the instantiated object of this bean.
|
void |
setLazyInit(java.lang.Boolean lazyInit) |
Sets whether this bean is to be lazily initialized.
|
void |
setMaskPattern(java.lang.String maskPattern) |
Sets the mask pattern.
|
void |
setMethodAutowireParsed(boolean methodAutowireParsed) |
|
void |
setPropertyItemRuleMap(ItemRuleMap propertyItemRuleMap) |
Sets the property item rule map.
|
void |
setProxied(boolean proxied) |
Sets whether this bean is proxied.
|
void |
setReplicated(boolean replicated) |
Sets whether this bean is replicated.
|
void |
setScanPattern(java.lang.String scanPattern) |
Sets the scan pattern.
|
void |
setScopeType(ScopeType scopeType) |
Sets the scope type.
|
void |
setSingleton(java.lang.Boolean singleton) |
Sets whether this bean is a singleton.
|
void |
setTargetBeanClass(java.lang.Class<?> targetBeanClass) |
|
java.lang.String |
toString() |
|
static void |
updateConstructorArgument(BeanRule beanRule,
java.lang.String text) |
|
static void |
updateProperty(BeanRule beanRule,
java.lang.String text) |
public static final java.lang.String CLASS_DIRECTIVE_PREFIX
public java.lang.String getId()
public void setId(java.lang.String id)
id - the bean idpublic java.lang.String getClassName()
public void setClassName(java.lang.String className)
className - the new class namepublic java.lang.Class<?> getBeanClass()
public void setBeanClass(java.lang.Class<?> beanClass)
beanClass - the new bean classpublic java.lang.String getScanPattern()
public void setScanPattern(java.lang.String scanPattern)
scanPattern - the new scan patternpublic java.lang.String getMaskPattern()
public Parameters getFilterParameters()
public void setFilterParameters(Parameters filterParameters)
filterParameters - the new filter parameterspublic void setMaskPattern(java.lang.String maskPattern)
maskPattern - the new mask patternpublic ScopeType getScopeType()
public void setScopeType(ScopeType scopeType)
scopeType - the new scope typepublic java.lang.Boolean getSingleton()
public void setSingleton(java.lang.Boolean singleton)
singleton - whether this bean is a singletonpublic boolean isSingleton()
public java.lang.String getFactoryBeanId()
public void setFactoryBeanId(java.lang.String factoryBeanId)
factoryBeanId - the new factory bean idpublic java.lang.Class<?> getFactoryBeanClass()
public void setFactoryBeanClass(java.lang.Class<?> factoryBeanClass)
factoryBeanClass - the factory bean classpublic java.lang.String getFactoryMethodName()
public void setFactoryMethodName(java.lang.String factoryMethodName)
factoryMethodName - the new factory method namepublic java.lang.reflect.Method getFactoryMethod()
public void setFactoryMethod(java.lang.reflect.Method factoryMethod)
public boolean isFactoryMethodRequiresTranslet()
public void setFactoryMethodRequiresTranslet(boolean factoryMethodRequiresTranslet)
public boolean isFactoryOffered()
public void setFactoryOffered(boolean factoryOffered)
public boolean isFactoryProductionRequired()
public java.lang.Class<?> getTargetBeanClass()
public void setTargetBeanClass(java.lang.Class<?> targetBeanClass)
public java.lang.String getTargetBeanClassName()
public java.lang.String getInitMethodName()
public void setInitMethodName(java.lang.String initMethodName)
initMethodName - the new initialization method namepublic java.lang.reflect.Method getInitMethod()
public void setInitMethod(java.lang.reflect.Method initMethod)
initMethod - the initialization methodpublic boolean isInitMethodRequiresTranslet()
public void setInitMethodRequiresTranslet(boolean initMethodRequiresTranslet)
initMethodRequiresTranslet - whether or not the initialization method requires Translet argumentpublic java.lang.String getDestroyMethodName()
public void setDestroyMethodName(java.lang.String destroyMethodName)
destroyMethodName - the new destroy method namepublic java.lang.reflect.Method getDestroyMethod()
public void setDestroyMethod(java.lang.reflect.Method destroyMethod)
destroyMethod - the new destroy methodpublic java.lang.Boolean getLazyInit()
public void setLazyInit(java.lang.Boolean lazyInit)
lazyInit - whether this bean is to be lazily initializedpublic boolean isLazyInit()
public java.lang.Boolean getImportant()
public void setImportant(java.lang.Boolean important)
important - whether important beanpublic boolean isImportant()
public ItemRuleMap getConstructorArgumentItemRuleMap()
public void setConstructorArgumentItemRuleMap(ItemRuleMap constructorArgumentItemRuleMap)
constructorArgumentItemRuleMap - the new constructor argument item rule mappublic ItemRule newConstructorArgumentItemRule()
public void addConstructorArgumentItemRule(ItemRule constructorArgumentItemRule)
constructorArgumentItemRule - the constructor argument item rulepublic ItemRuleMap getPropertyItemRuleMap()
public void setPropertyItemRuleMap(ItemRuleMap propertyItemRuleMap)
propertyItemRuleMap - the new property item rule mappublic ItemRule newPropertyItemRule(java.lang.String propertyName)
propertyName - the property namepublic void addPropertyItemRule(ItemRule propertyItemRule)
propertyItemRule - the new property item rulepublic boolean isFactoryBean()
public boolean isDisposableBean()
public boolean isInitializableBean()
public boolean isInitializableTransletBean()
public boolean isReplicated()
public void setReplicated(boolean replicated)
replicated - true, if this bean is replicatedpublic boolean isProxied()
public void setProxied(boolean proxied)
proxied - true, if this bean is proxiedpublic boolean isProxiable()
public java.util.List<AutowireRule> getAutowireRuleList()
public void addAutowireRule(AutowireRule autowireRule)
public boolean isFieldAutowireParsed()
public void setFieldAutowireParsed(boolean fieldAutowireParsed)
public boolean isMethodAutowireParsed()
public void setMethodAutowireParsed(boolean methodAutowireParsed)
public InstantiatedBean getInstantiatedBean()
public void setInstantiatedBean(InstantiatedBean instantiatedBean)
instantiatedBean - the instantiated object of this beanpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new descriptionpublic BeanRule replicate()
Replicablereplicate in interface Replicable<BeanRule>public BeanRefererType getBeanRefererType()
getBeanRefererType in interface BeanReferenceInspectablepublic java.lang.String toString()
toString in class java.lang.Objectpublic static BeanRule newInstance(java.lang.String id, java.lang.String className, java.lang.String scanPattern, java.lang.String maskPattern, java.lang.String initMethodName, java.lang.String destroyMethodName, java.lang.String factoryMethodName, java.lang.String scope, java.lang.Boolean singleton, java.lang.Boolean lazyInit, java.lang.Boolean important)
public static BeanRule newOfferedFactoryBeanInstance(java.lang.String id, java.lang.String factoryBeanId, java.lang.String factoryMethodName, java.lang.String initMethodName, java.lang.String destroyMethodName, java.lang.String scope, java.lang.Boolean singleton, java.lang.Boolean lazyInit, java.lang.Boolean important)
public static void updateConstructorArgument(BeanRule beanRule, java.lang.String text) throws IllegalRuleException
IllegalRuleExceptionpublic static void updateProperty(BeanRule beanRule, java.lang.String text) throws IllegalRuleException
IllegalRuleExceptionCopyright © 2008–2018 The Aspectran Project. All rights reserved.