Class ServiceExecutionTemplate<S,​R>

  • Type Parameters:
    S - the service getting executed
    R - the result of the service execution
    All Implemented Interfaces:
    Callable<com.atlassian.fugue.Option<R>>
    Direct Known Subclasses:
    StaticServiceExecution

    public abstract class ServiceExecutionTemplate<S,​R>
    extends Object
    implements Callable<com.atlassian.fugue.Option<R>>
    Template for service executions.
    Since:
    5.6
    • Field Detail

      • serviceReference

        protected final org.osgi.framework.ServiceReference serviceReference
    • Constructor Detail

      • ServiceExecutionTemplate

        public ServiceExecutionTemplate​(org.osgi.framework.ServiceReference serviceReference)
    • Method Detail

      • serviceReferenceToString

        protected String serviceReferenceToString()
      • execute

        protected abstract R execute​(S service)