public class ReflectionBuilder extends Object
Factory
implementations and will call
getInstance
to satisfy any reference to this bean.Constructor and Description |
---|
ReflectionBuilder() |
ReflectionBuilder(Map<String,?> defaults) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyGlobalProperty(Map objects,
String property,
String value) |
protected void |
applyProperty(Object object,
String propertyPath,
Object value) |
protected void |
applyProperty(Object object,
String propertyName,
String stringValue) |
protected void |
applyProperty(String key,
String value,
Map objects) |
protected void |
applySingleProperty(Map objects,
String name,
String property,
String value) |
Map<String,?> |
buildObjects(Map<String,String> kvPairs) |
protected String |
checkForNullOrEmptyLiteral(String stringValue) |
protected void |
createNewInstance(Map<String,Object> objects,
String name,
String value) |
void |
destroy() |
protected org.apache.shiro.event.EventBus |
findEventBus(Map<String,?> objects) |
Object |
getBean(String id) |
<T> T |
getBean(String id,
Class<T> requiredType) |
protected String |
getId(String referenceToken) |
Map<String,?> |
getObjects() |
protected Object |
getReferencedObject(String id) |
protected boolean |
isIndexedPropertyAssignment(String propertyPath) |
protected boolean |
isReference(String value) |
protected boolean |
isTypedProperty(Object object,
String propertyName,
Class clazz) |
protected Object |
resolveReference(String reference) |
protected Object |
resolveValue(String stringValue) |
void |
setInterpolator(Interpolator interpolator)
Sets the
Interpolator used when evaluating the right side of the expressions. |
void |
setObjects(Map<String,?> objects) |
protected byte[] |
toBytes(String sValue) |
protected Collection<?> |
toCollection(String sValue) |
protected List<?> |
toList(String sValue) |
protected Map<?,?> |
toMap(String sValue) |
protected Set<?> |
toSet(String sValue) |
protected String |
unescapeIfNecessary(String value) |
public ReflectionBuilder()
public ReflectionBuilder(Map<String,?> defaults)
public Map<String,?> getObjects()
public void setObjects(Map<String,?> objects)
objects
- protected org.apache.shiro.event.EventBus findEventBus(Map<String,?> objects)
public void destroy()
protected void createNewInstance(Map<String,Object> objects, String name, String value)
protected void applyProperty(String key, String value, Map objects)
protected void applyGlobalProperty(Map objects, String property, String value)
protected void applySingleProperty(Map objects, String name, String property, String value)
protected boolean isReference(String value)
protected Object getReferencedObject(String id)
protected String unescapeIfNecessary(String value)
protected Object resolveReference(String reference)
protected boolean isTypedProperty(Object object, String propertyName, Class clazz)
protected Collection<?> toCollection(String sValue)
protected Object resolveValue(String stringValue)
protected String checkForNullOrEmptyLiteral(String stringValue)
protected void applyProperty(Object object, String propertyPath, Object value)
protected boolean isIndexedPropertyAssignment(String propertyPath)
protected void applyProperty(Object object, String propertyName, String stringValue)
public void setInterpolator(Interpolator interpolator)
Interpolator
used when evaluating the right side of the expressions.Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.