public class AdviceServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements AdviceService, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Reconfigurable
Constructor and Description |
---|
AdviceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
advice(java.lang.Object object)
Advice the object with a the list of default AvalonInterceptorServices.
|
java.lang.Object |
advice(java.lang.String[] interceptorList,
java.lang.Object object)
Advice the object with a list of AvalonInterceptorServices.
|
java.lang.Object |
advice(java.lang.String name,
java.lang.Object object)
Advice the object with a the list of default AvalonInterceptorServices.
|
java.lang.Object |
advice(java.lang.String name,
java.lang.String[] interceptorList,
java.lang.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 java.lang.Object |
doAdvice(java.lang.String name,
java.lang.String[] interceptorList,
java.lang.Object object)
Does the actual work of advising the object.
|
boolean |
isAdviced(java.lang.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) |
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.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.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.Contextualizable
org.apache.avalon.framework.context.ContextException
Contextualizable.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.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.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.Reconfigurable
org.apache.avalon.framework.configuration.ConfigurationException
Reconfigurable.reconfigure(org.apache.avalon.framework.configuration.Configuration)
public java.lang.Object advice(java.lang.Object object)
AdviceService
advice
in interface AdviceService
object
- the object to be advisedAdviceService.advice(java.lang.Object)
public java.lang.Object advice(java.lang.String name, java.lang.Object object)
AdviceService
advice
in interface AdviceService
name
- the name of the objectobject
- the object to be advisedAdviceService.advice(java.lang.String, java.lang.Object)
public java.lang.Object advice(java.lang.String[] interceptorList, java.lang.Object object)
AdviceService
advice
in interface AdviceService
interceptorList
- the list of service namesobject
- the object to be advisedAdviceService.advice(java.lang.String[], java.lang.Object)
public java.lang.Object advice(java.lang.String name, java.lang.String[] interceptorList, java.lang.Object object)
AdviceService
advice
in interface AdviceService
name
- the associated name of the objectinterceptorList
- the list of service namesobject
- the object to be advisedAdviceService.advice(java.lang.String, java.lang.String[], java.lang.Object)
public boolean isAdviced(java.lang.Object object)
AdviceService
isAdviced
in interface AdviceService
object
- the object to checkAdviceService.isAdviced(java.lang.Object)
protected java.lang.Object doAdvice(java.lang.String name, java.lang.String[] interceptorList, java.lang.Object object)
name
- the name of the object to be advisedinterceptorList
- the list of interceptor services to advise the objectobject
- the object to be advisedCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.