public class AccessFactoryImpl extends Object implements IAccessFactory
IAccessFactory.| Modifier and Type | Field and Description |
|---|---|
protected ICache<String,IAccess> |
cache
Cache for access information.
|
DEFAULT_PROPERTY_ACCEPT_NULL_PATH, DEFAULT_PROPERTY_INVALID_PATH_AS_NULL, FEATURE_PROPERTY_ACCEPT_NULL_PATH, FEATURE_PROPERTY_INVALID_PATH_AS_NULL| Constructor and Description |
|---|
AccessFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(Object source,
String str)
Get the object value for
str path in object. |
protected IAccess |
lookupBean(Object target,
String name)
Lookup for a bean property.
|
protected IAccess |
lookupField(Class<?> clazz,
String name)
Lookup for a public attribute.
|
protected IAccess |
lookupMethod(Class<?> clazz,
String name)
Lookup for public method.
|
IAccess |
newAccess(Object target,
String name)
Create access information for a given object and a given feature.
|
public IAccess newAccess(Object target, String name)
IAccessFactorynewAccess in interface IAccessFactorytarget - The target object.name - The feature name.protected IAccess lookupBean(Object target, String name)
target - The object instance.name - The feature name.protected IAccess lookupField(Class<?> clazz, String name)
clazz - The class.name - The feature name.protected IAccess lookupMethod(Class<?> clazz, String name)
clazz - The class.name - The feature name.public Object getProperty(Object source, String str) throws PluginException
IAccessFactorystr path in object.getProperty in interface IAccessFactorysource - A object to inspect.str - A property path.PluginException - On lookup errors.Copyright © 2016. All rights reserved.