Class StaticServiceExecution<S,R>
- java.lang.Object
-
- com.atlassian.sal.confluence.lifecycle.ServiceExecutionTemplate<S,R>
-
- com.atlassian.sal.confluence.lifecycle.StaticServiceExecution<S,R>
-
- Type Parameters:
S
- the service to be executedR
- 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 Summary
Fields Modifier and Type Field Description protected com.google.common.base.Function<S,R>
serviceCallback
-
Fields inherited from class com.atlassian.sal.confluence.lifecycle.ServiceExecutionTemplate
serviceReference
-
-
Constructor Summary
Constructors Constructor Description StaticServiceExecution(org.osgi.framework.ServiceReference serviceReference, com.google.common.base.Function<S,R> serviceCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected R
execute(S service)
-
Methods inherited from class com.atlassian.sal.confluence.lifecycle.ServiceExecutionTemplate
call, serviceReferenceToString
-
-