Package com.liferay.portal.aop
Interface AopService
public interface AopService
Declares implementations to be proxied and intercepted by advices. The
service is re-registered as interfaces it implements.
Important: A service implementation should only register as
an AopService so that service listeners only see the service
proxy.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class<?>[]Returns the services that the service proxy registers into OSGi for thisAopService.default voidsetAopProxy(Object aopProxy) Sets this service's enclosing AOP proxy.
-
Method Details
-
getAopInterfaces
Returns the services that the service proxy registers into OSGi for thisAopService.If the method is not overridden, all the services this
AopServicedirectly implements, exceptAopService, are returned and registered into OSGi by the service proxy.Here are the restraints:
-
The services cannot include
AopService - The service list must not change
- The service list can only contain interfaces
-
This
AopServiceimplementation must implement each service interface -
This
AopServiceimplementation must implement something in addition toAopService
-
The services cannot include
-
setAopProxy
Sets this service's enclosing AOP proxy.- Parameters:
aopProxy- this service's enclosing AOP proxy
-