public class DefaultAccessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
The Constant logger.
|
| Constructor and Description |
|---|
DefaultAccessor() |
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Gets the application.
|
protected Object |
getProperty(Object obj,
String name,
Object defaultValue)
Gets the property.
|
protected Object |
getProperty(Object obj,
String name,
Object defaultValue,
boolean forced)
Gets the property.
|
Object |
getTarget()
Gets the target.
|
String |
getTargetClass()
Gets the target class.
|
protected Object |
invokeMethod(Object object,
String name,
Object param,
Object defaultValue)
Invoke method.
|
void |
setApplication(Application application)
Sets the application.
|
void |
setTarget(Object target)
Sets the target.
|
public Application getApplication()
public void setApplication(Application application)
application - the new applicationpublic Object getTarget()
public void setTarget(Object target)
target - the new targetpublic String getTargetClass()
protected Object getProperty(Object obj, String name, Object defaultValue, boolean forced)
obj - the objname - the namedefaultValue - the default valueforced - whether or not to force access to the fieldprotected Object getProperty(Object obj, String name, Object defaultValue)
obj - the objname - the namedefaultValue - the default valueCopyright © 2009–2020 psi-probe. All rights reserved.