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 Type
    Method
    Description
    default Class<?>[]
    Returns the services that the service proxy registers into OSGi for this AopService.
    default void
    setAopProxy(Object aopProxy)
    Sets this service's enclosing AOP proxy.
  • Method Details

    • getAopInterfaces

      default Class<?>[] getAopInterfaces()
      Returns the services that the service proxy registers into OSGi for this AopService.

      If the method is not overridden, all the services this AopService directly implements, except AopService, 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 AopService implementation must implement each service interface
      • This AopService implementation must implement something in addition to AopService
    • setAopProxy

      default void setAopProxy(Object aopProxy)
      Sets this service's enclosing AOP proxy.
      Parameters:
      aopProxy - this service's enclosing AOP proxy