com.bstek.dorado.config
public class ExpressionMethodInterceptor extends java.lang.Object implements org.aopalliance.intercept.MethodInterceptor
Modifier and Type | Class and Description |
---|---|
protected static class |
ExpressionMethodInterceptor.ReadMethodDescriptor |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ENTRY_SET |
protected static java.lang.String |
GET |
protected java.util.Map<java.lang.reflect.Method,ExpressionMethodInterceptor.ReadMethodDescriptor> |
interceptingReadMethods |
protected java.util.Map<java.lang.reflect.Method,java.lang.reflect.Method> |
interceptingWriteMethods |
protected static java.lang.String |
PUT |
Constructor and Description |
---|
ExpressionMethodInterceptor(java.util.Map<java.lang.String,Expression> expressionProperties) |
Modifier and Type | Method and Description |
---|---|
protected void |
discoverInterceptingMethods(java.lang.Class<?> clazz) |
protected java.lang.Object |
evaluateExpression(ExpressionMethodInterceptor.ReadMethodDescriptor methodDescriptor)
根据被拦截到的方法评估(evaluate)相应的EL表达式,并返回其结果。
|
java.util.Map<java.lang.String,Expression> |
getExpressionProperties()
返回一个包含EL表达式信息的Map。该Map的键值为属性名,值为具体的EL表达式。
|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) |
boolean |
isDisabled()
返回该方法拦截器当前是否已被禁用。
|
void |
setDisabled(boolean disabled)
设置该方法拦截器当前是否被禁用。
|
protected static final java.lang.String GET
protected static final java.lang.String PUT
protected static final java.lang.String ENTRY_SET
protected java.util.Map<java.lang.reflect.Method,ExpressionMethodInterceptor.ReadMethodDescriptor> interceptingReadMethods
protected java.util.Map<java.lang.reflect.Method,java.lang.reflect.Method> interceptingWriteMethods
public ExpressionMethodInterceptor(java.util.Map<java.lang.String,Expression> expressionProperties)
expressionProperties
- 包含EL表达式信息的Map。其中Map的键值为相应的对象属性名,值为EL表达式。public boolean isDisabled()
public void setDisabled(boolean disabled)
public java.util.Map<java.lang.String,Expression> getExpressionProperties()
protected void discoverInterceptingMethods(java.lang.Class<?> clazz) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object evaluateExpression(ExpressionMethodInterceptor.ReadMethodDescriptor methodDescriptor)
methodDescriptor
- 被拦截到的方法。public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
java.lang.Throwable
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.