|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.yaafi.service.advice.AdviceServiceImpl
public class AdviceServiceImpl
Simple service providing interceptor advices for ordinary POJOs. Since the implementation uses Dynamic Proxies only methods invoked by an interface can be advised.
| Constructor Summary | |
|---|---|
AdviceServiceImpl()
|
|
| Method Summary | |
|---|---|
Object |
advice(Object object)
Advice the object with a the list of default AvalonInterceptorServices. |
Object |
advice(String[] interceptorList,
Object object)
Advice the object with a list of AvalonInterceptorServices. |
Object |
advice(String name,
Object object)
Advice the object with a the list of default AvalonInterceptorServices. |
Object |
advice(String name,
String[] interceptorList,
Object object)
Advice the object with a list of AvalonInterceptorServices. |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
protected Object |
doAdvice(String name,
String[] interceptorList,
Object object)
Does the actual work of advising the object. |
boolean |
isAdviced(Object object)
Is the given object already adviced? |
void |
reconfigure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
service(org.apache.avalon.framework.service.ServiceManager serviceManager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdviceServiceImpl()
| Method Detail |
|---|
public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)
public void contextualize(org.apache.avalon.framework.context.Context context)
throws org.apache.avalon.framework.context.ContextException
contextualize in interface org.apache.avalon.framework.context.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(org.apache.avalon.framework.configuration.Configuration)
public void reconfigure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
reconfigure in interface org.apache.avalon.framework.configuration.Reconfigurableorg.apache.avalon.framework.configuration.ConfigurationExceptionReconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)public Object advice(Object object)
AdviceService
advice in interface AdviceServiceobject - the object to be advised
AdviceService.advice(java.lang.Object)
public Object advice(String name,
Object object)
AdviceService
advice in interface AdviceServicename - the name of the objectobject - the object to be advised
AdviceService.advice(java.lang.String, java.lang.Object)
public Object advice(String[] interceptorList,
Object object)
AdviceService
advice in interface AdviceServiceinterceptorList - the list of service namesobject - the object to be advised
AdviceService.advice(java.lang.String[], java.lang.Object)
public Object advice(String name,
String[] interceptorList,
Object object)
AdviceService
advice in interface AdviceServicename - the associated name of the objectinterceptorList - the list of service namesobject - the object to be advised
AdviceService.advice(java.lang.String, java.lang.String[], java.lang.Object)public boolean isAdviced(Object object)
AdviceService
isAdviced in interface AdviceServiceobject - the object to check
AdviceService.isAdviced(java.lang.Object)
protected Object doAdvice(String name,
String[] interceptorList,
Object object)
name - the name of the object to be advisedinterceptorList - the list of interceptor services to advise the objectobject - the object to be advised
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||