|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.madvoc.injector.BaseScopeInjector
public abstract class BaseScopeInjector
Abstract base class for HTTP scopes injection.
| Field Summary | |
|---|---|
protected static ScopeDataResolver |
scopeDataResolver
|
protected ScopeType |
scopeType
|
| Constructor Summary | |
|---|---|
protected |
BaseScopeInjector(ScopeType scopeType)
Creates scope injector for provided ScopeType. |
| Method Summary | |
|---|---|
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(java.lang.Object target,
ScopeData.Out out)
Reads target property. |
ScopeData.In[] |
lookupInData(java.lang.Class actionClass)
Delegates to ScopeDataResolver.lookupInData(Class, jodd.madvoc.ScopeType) |
ScopeData.Out[] |
lookupOutData(java.lang.Class actionClass)
Delegates to ScopeDataResolver.lookupOutData(Class, jodd.madvoc.ScopeType) |
protected void |
setTargetProperty(java.lang.Object target,
java.lang.String name,
java.lang.Object attrValue,
boolean create)
Sets target bean property, optionally creates instance if doesn't exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final ScopeDataResolver scopeDataResolver
protected final ScopeType scopeType
| Constructor Detail |
|---|
protected BaseScopeInjector(ScopeType scopeType)
ScopeType.
| Method Detail |
|---|
protected void setTargetProperty(java.lang.Object target,
java.lang.String name,
java.lang.Object attrValue,
boolean create)
protected java.lang.Object getTargetProperty(java.lang.Object 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.In[] lookupInData(java.lang.Class actionClass)
ScopeDataResolver.lookupInData(Class, jodd.madvoc.ScopeType)
public ScopeData.Out[] lookupOutData(java.lang.Class actionClass)
ScopeDataResolver.lookupOutData(Class, jodd.madvoc.ScopeType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||