public class InjectionPoint
extends java.lang.Object
Constructor and Description |
---|
InjectionPoint(java.lang.Class type,
java.lang.String name,
java.lang.String targetName,
MadvocScope scope,
java.lang.String defaultValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
defaultValue()
Returns default value or
null if not set. |
java.lang.String |
matchedName(java.lang.String value)
Returns matched name or
null if name is not matched. |
java.lang.String |
name()
Returns injection point name.
|
MadvocScope |
scope()
Returns the scope instance of this injection point.
|
java.lang.String |
targetName()
Returns real targets name, used for writing and reading directly to the target.
|
java.lang.Class |
type()
Returns injection point type.
|
public InjectionPoint(java.lang.Class type, java.lang.String name, java.lang.String targetName, MadvocScope scope, java.lang.String defaultValue)
public java.lang.Class type()
public java.lang.String name()
public MadvocScope scope()
public java.lang.String targetName()
public java.lang.String defaultValue()
null
if not set.public java.lang.String matchedName(java.lang.String value)
null
if name is not matched.
Matches if attribute name matches the required field name. If the match is positive, injection 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.
Copyright © 2003-present Jodd Team