com.atlassian.sal.confluence.lifecycle
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceReference
protected final org.osgi.framework.ServiceReference serviceReference
ServiceExecutionTemplate
public ServiceExecutionTemplate(org.osgi.framework.ServiceReference serviceReference)
serviceReferenceToString
protected String serviceReferenceToString()
call
public com.atlassian.fugue.Option<R> call()
throws Exception
- Specified by:
call
in interface Callable<com.atlassian.fugue.Option<R>>
- Throws:
Exception
execute
protected abstract R execute(S service)
Copyright © 2003–2015 Atlassian. All rights reserved.