|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HostContextAccessor
Interface for accessing host information, meant to be exposed as a host component
| Nested Class Summary | |
|---|---|
static interface |
HostContextAccessor.HostTransactionCallback<T>
The interface to implement for code that needs to be ran inside a host transaction |
| Method Summary | ||
|---|---|---|
|
doInTransaction(HostContextAccessor.HostTransactionCallback<T> callback)
Runs an action in a transaction and returns a optional value. |
|
|
getComponentsOfType(Class<T> iface)
Gets all beans of a given type |
|
| Method Detail |
|---|
<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 execute
RuntimeException - if anything went wrong. The caller will be responsible for rolling back.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||