Package org.apache.commons.ognl
Class OgnlCache
- java.lang.Object
-
- org.apache.commons.ognl.OgnlCache
-
public class OgnlCache extends Object
This class takes care of all the internal caching for OGNL.
-
-
Constructor Summary
Constructors Constructor Description OgnlCache()
-
Method Summary
-
-
-
Method Detail
-
getMethodParameterTypes
public Class<?>[] getMethodParameterTypes(Method method) throws CacheException
- Throws:
CacheException
-
getParameterTypes
public Class<?>[] getParameterTypes(Constructor<?> constructor) throws CacheException
- Throws:
CacheException
-
getConstructor
public List<Constructor<?>> getConstructor(Class<?> clazz) throws CacheException
- Throws:
CacheException
-
getField
public Map<String,Field> getField(Class<?> clazz) throws CacheException
- Throws:
CacheException
-
getMethod
public Map<String,List<Method>> getMethod(DeclaredMethodCacheEntry declaredMethodCacheEntry) throws CacheException
- Throws:
CacheException
-
getPropertyDescriptor
public Map<String,PropertyDescriptor> getPropertyDescriptor(Class<?> clazz) throws CacheException
- Throws:
CacheException
-
getInvokePermission
public Permission getInvokePermission(PermissionCacheEntry permissionCacheEntry) throws CacheException
- Throws:
CacheException
-
getMethodAccessor
public MethodAccessor getMethodAccessor(Class<?> clazz) throws OgnlException
- Throws:
OgnlException
-
setMethodAccessor
public void setMethodAccessor(Class<?> clazz, MethodAccessor accessor)
-
setPropertyAccessor
public void setPropertyAccessor(Class<?> clazz, PropertyAccessor accessor)
-
getPropertyAccessor
public PropertyAccessor getPropertyAccessor(Class<?> clazz) throws OgnlException
- Throws:
OgnlException
-
setClassCacheInspector
public void setClassCacheInspector(ClassCacheInspector inspector)
Registers the specifiedClassCacheInspector
with all class reflection based internal caches. This may have a significant performance impact so be careful using this in production scenarios.- Parameters:
inspector
- The inspector instance that will be registered with all internal cache instances.
-
getGenericMethodParameterTypes
public Class<?>[] getGenericMethodParameterTypes(GenericMethodParameterTypeCacheEntry key) throws CacheException
- Throws:
CacheException
-
getMethodPerm
public boolean getMethodPerm(Method method) throws CacheException
- Throws:
CacheException
-
getMethodAccess
public MethodAccessEntryValue getMethodAccess(Method method) throws CacheException
- Throws:
CacheException
-
clear
public void clear()
-
getElementsAccessor
public ElementsAccessor getElementsAccessor(Class<?> clazz) throws OgnlException
- Throws:
OgnlException
-
setElementsAccessor
public void setElementsAccessor(Class<?> clazz, ElementsAccessor accessor)
-
getNullHandler
public NullHandler getNullHandler(Class<?> clazz) throws OgnlException
- Throws:
OgnlException
-
setNullHandler
public void setNullHandler(Class<?> clazz, NullHandler handler)
-
setSecurityManager
public void setSecurityManager(SecurityManager securityManager)
-
-