|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor
ch.elca.el4j.util.metadata.GenericMetaDataAdvisor
public class GenericMetaDataAdvisor
This class simplifies the metadata programming.
One way to set up AOP in Spring is to define a DefaultAdvisorAutoProxyCreator bean which will create AOP proxies for all Advisors that are defined in the same BeanFactory. These advisors are the starting points for Attributes. For each attribute, at least 4 beans have to be defined:
This class simplifies the creation of attributes. By using it, only two beans have to be defined:
Field Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Fields inherited from interface org.springframework.aop.Pointcut |
---|
TRUE |
Fields inherited from interface org.springframework.aop.MethodMatcher |
---|
TRUE |
Constructor Summary | |
---|---|
GenericMetaDataAdvisor()
Default constructor. |
|
GenericMetaDataAdvisor(org.aopalliance.aop.Advice advice)
Constructor which sets the advice being received as parameter. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
List<Class> |
getInterceptingMetaData()
|
GenericMetaDataSource |
getMetaDataSource()
|
org.aopalliance.intercept.MethodInterceptor |
getMethodInterceptor()
A convenience getter method for the method interceptor. |
boolean |
matches(Method method,
Class targetClass)
Perform static checking. |
void |
setInterceptingMetaData(List<Class> interceptingMetaData)
|
void |
setMetaDataSource(GenericMetaDataSource metaDataSource)
|
void |
setMethodInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor)
A convenience setter method for the method Interceptor. |
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcutAdvisor |
---|
getAdvice, getOrder, getPointcut, isPerInstance, setAdvice, setOrder |
Methods inherited from class org.springframework.aop.support.StaticMethodMatcherPointcut |
---|
getClassFilter, getMethodMatcher, setClassFilter |
Methods inherited from class org.springframework.aop.support.StaticMethodMatcher |
---|
isRuntime, matches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericMetaDataAdvisor()
public GenericMetaDataAdvisor(org.aopalliance.aop.Advice advice)
advice
- The advice to set.Method Detail |
---|
public List<Class> getInterceptingMetaData()
public void setInterceptingMetaData(List<Class> interceptingMetaData)
interceptingMetaData
- Is the interceptingMetaData to set.public GenericMetaDataSource getMetaDataSource()
public void setMetaDataSource(GenericMetaDataSource metaDataSource)
metaDataSource
- Is the metaDataSource to set.public org.aopalliance.intercept.MethodInterceptor getMethodInterceptor()
public void setMethodInterceptor(org.aopalliance.intercept.MethodInterceptor methodInterceptor)
methodInterceptor
- The methodInterceptor to set.public boolean matches(Method method, Class targetClass)
matches
in interface MethodMatcher
method
- the candidate methodtargetClass
- target class (may be null, in which case the candidate class
must be taken to be the method's declaring class)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |