public class DefaultHostContextAccessor extends Object implements com.atlassian.sal.spi.HostContextAccessor
Constructor and Description |
---|
DefaultHostContextAccessor() |
Modifier and Type | Method and Description |
---|---|
<T> T |
doInTransaction(com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> hostTransactionCallback)
No transactions in JIRA so this is effectively a NoOp.
|
<T> Map<String,T> |
getComponentsOfType(Class<T> iface)
Returns a mapping of all the component keys to instances that are registered in pico for the given iface class.
|
public <T> Map<String,T> getComponentsOfType(Class<T> iface)
getComponentsOfType
in interface com.atlassian.sal.spi.HostContextAccessor
iface
- The class that components returned need to implement.public <T> T doInTransaction(com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> hostTransactionCallback)
doInTransaction
in interface com.atlassian.sal.spi.HostContextAccessor
hostTransactionCallback
- the action to be executed.Copyright © 2002-2016 Atlassian. All Rights Reserved.