public interface HostContextAccessor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HostContextAccessor.HostTransactionCallback<T>
The interface to implement for code that needs to be ran inside a host transaction
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
doInTransaction(HostContextAccessor.HostTransactionCallback<T> callback)
Runs an action in a transaction and returns a optional value.
|
<T> Map<String,T> |
getComponentsOfType(Class<T> iface)
Gets all beans of a given type
|
<T> Map<String,T> getComponentsOfType(Class<T> iface)
iface - The interface to use<T> T doInTransaction(HostContextAccessor.HostTransactionCallback<T> callback)
callback - The callback class to executeRuntimeException - if anything went wrong. The caller will be responsible for rolling back.Copyright © 2019 Atlassian. All rights reserved.