Class StaticServiceExecution<S,​R>

  • Type Parameters:
    S - the service to be executed
    R - the result of the service execution
    All Implemented Interfaces:
    Callable<com.atlassian.fugue.Option<R>>

    public class StaticServiceExecution<S,​R>
    extends ServiceExecutionTemplate<S,​R>
    Delegates service execution to a callback.
    Since:
    5.6
    • Field Detail

      • serviceCallback

        protected final com.google.common.base.Function<S,​R> serviceCallback
    • Constructor Detail

      • StaticServiceExecution

        public StaticServiceExecution​(org.osgi.framework.ServiceReference serviceReference,
                                      com.google.common.base.Function<S,​R> serviceCallback)