Class ServiceExecutionTemplate<S,R>
- java.lang.Object
-
- com.atlassian.sal.confluence.lifecycle.ServiceExecutionTemplate<S,R>
-
- Type Parameters:
S
- the service getting executedR
- 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 Summary
Fields Modifier and Type Field Description protected org.osgi.framework.ServiceReference
serviceReference
-
Constructor Summary
Constructors Constructor Description ServiceExecutionTemplate(org.osgi.framework.ServiceReference serviceReference)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.atlassian.fugue.Option<R>
call()
protected abstract R
execute(S service)
protected String
serviceReferenceToString()
-