public abstract class BaseScopeInjector
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ScopeDataResolver |
scopeDataResolver |
protected ScopeType |
scopeType |
protected boolean |
silent |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseScopeInjector(ScopeType scopeType,
ScopeDataResolver scopeDataResolver)
Creates scope injector for provided
ScopeType. |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getMatchedPropertyName(ScopeData.In in,
java.lang.String attrName)
Returns matched property name or
null if name is not matched. |
protected java.lang.Object |
getTargetProperty(Target target,
ScopeData.Out out)
Reads target property.
|
boolean |
isSilent()
Returns
true if injection is silent. |
ScopeData.In[] |
lookupInData(ScopeData[] scopeData)
Returns IN data for current scope type.
|
ScopeData[] |
lookupScopeData(ActionRequest actionRequest)
Returns scope data from action request and for current scope type.
|
void |
setSilent(boolean silent)
Defines if injection should throw exceptions or to be silent.
|
protected void |
setTargetProperty(Target target,
java.lang.String name,
java.lang.Object value)
Sets target bean property, optionally creates instance if doesn't exist.
|
protected final ScopeDataResolver scopeDataResolver
protected final ScopeType scopeType
protected boolean silent
protected BaseScopeInjector(ScopeType scopeType, ScopeDataResolver scopeDataResolver)
ScopeType.public boolean isSilent()
true if injection is silent.public void setSilent(boolean silent)
protected void setTargetProperty(Target target, java.lang.String name, java.lang.Object value)
protected java.lang.Object getTargetProperty(Target target, ScopeData.Out out)
protected java.lang.String getMatchedPropertyName(ScopeData.In in, java.lang.String attrName)
null if name is not matched.
Matches if attribute name matches the required field name. If the match is positive, injection or outjection is performed on the field.
Parameter name matches field name if param name starts with field name and has either '.' or '[' after the field name.
Returns real property name, once when name is matched.
public ScopeData[] lookupScopeData(ActionRequest actionRequest)
public ScopeData.In[] lookupInData(ScopeData[] scopeData)
Copyright © 2003-2013 Jodd Team