public class DefaultHostContextAccessor extends Object implements com.atlassian.sal.spi.HostContextAccessor
Constructor and Description |
---|
DefaultHostContextAccessor()
Constructor called by Pico.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
doInTransaction(com.atlassian.sal.spi.HostContextAccessor.HostTransactionCallback<T> hostTransactionCallback)
JDEV-32949: This has been reverted to a NO-OP until we figure out if we can do this in safe way.
|
<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 DefaultHostContextAccessor()
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-2019 Atlassian. All Rights Reserved.