|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.xml.nut.Nut
jfun.yan.xml.nut.ComponentNut
jfun.yan.xml.nuts.ArgumentsAndPropertiesNut
public abstract class ArgumentsAndPropertiesNut
Super class for any Nut that supports <arg>, <args>,<prop> and <props> sub-elements.
| Constructor Summary | |
|---|---|
ArgumentsAndPropertiesNut()
|
|
| Method Summary | |
|---|---|
void |
addArg(Arg a)
|
void |
addArgs(Args a)
|
void |
addProp(Prop prop)
|
protected Component |
applyArguments(Component component)
Apply the specified parameters if any. |
protected Component |
applyProperties(Component component)
Create bean component is any property name is specified or any property value is specified. |
boolean |
containsExplicitProperty(java.lang.String key)
Is the a property explicitly specified? |
protected Component |
decorateComponent(Component component)
Apply arguments and then properties to the component. |
protected Component |
defineBean(Component c,
boolean isAll)
Create a bean component and filter out the undesired properties. |
java.util.List |
getArgList()
|
java.lang.Object[] |
getArgs()
|
PropertyBinder |
getAutoWire()
Get the specified autowire mode. |
int |
getMaxArgsCount()
Get the maximum number of the arguments. |
ParameterBinder |
getParameterAutowireMode()
Get the auto wire mode for parameters. |
java.lang.Class[] |
getParameterTypes()
|
PropertyBinder |
getPropertyAutowireMode()
Get the auto wire mode for properties. |
java.lang.String[] |
getPropertyNames()
|
protected Component |
informAwares(Component c)
In case the component implements any marker interface or has any specific method signature that is used to automatically set property, call them and set the corresponding properties. |
boolean |
isAllProperties()
Is wildcard used? |
protected boolean |
isBeanByDefault()
When no property names is specified, no property values are set, do we by default create a bean component? |
boolean |
isValidate_property_names()
|
void |
setArgs(java.lang.Object[] args)
|
void |
setAutowire(java.lang.String mode)
|
void |
setOptional_properties(boolean flag)
|
void |
setParams(java.lang.Class[] param_types)
|
void |
setProperty_names(java.lang.String[] names)
|
void |
setProps(java.util.Map props)
|
void |
setValidate_property_names(boolean check_property_names)
|
| Methods inherited from class jfun.yan.xml.nut.ComponentNut |
|---|
eval |
| Methods inherited from class jfun.yan.xml.nut.Nut |
|---|
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArgumentsAndPropertiesNut()
| Method Detail |
|---|
public int getMaxArgsCount()
public java.lang.Object[] getArgs()
public java.util.List getArgList()
public void setArgs(java.lang.Object[] args)
public java.lang.Class[] getParameterTypes()
public void setParams(java.lang.Class[] param_types)
public void addArgs(Args a)
public void addArg(Arg a)
protected Component applyArguments(Component component)
component - the component to apply parameters.
public boolean containsExplicitProperty(java.lang.String key)
key - the property key.public boolean isValidate_property_names()
public void setValidate_property_names(boolean check_property_names)
public void setProps(java.util.Map props)
public void setAutowire(java.lang.String mode)
public PropertyBinder getAutoWire()
public void setProperty_names(java.lang.String[] names)
public java.lang.String[] getPropertyNames()
public void addProp(Prop prop)
public void setOptional_properties(boolean flag)
protected Component defineBean(Component c,
boolean isAll)
throws java.beans.IntrospectionException
c - the Component to inject properties.isAll - whether we want all properties.
java.beans.IntrospectionException - when introspection failed.protected boolean isBeanByDefault()
protected Component applyProperties(Component component)
component - the component to apply properties.
protected Component informAwares(Component c)
c - the component.
public PropertyBinder getPropertyAutowireMode()
public ParameterBinder getParameterAutowireMode()
public boolean isAllProperties()
protected Component decorateComponent(Component component)
component - the component to apply arguments and properties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||