Class Overview
This is necessary to provide a generic way for SAL to access a component that may not have been published the
plugins 2.0 way.
Summary
Public Methods |
<T>
T
|
doInTransaction(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.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.sal.spi.HostContextAccessor
<T>
T
|
doInTransaction(HostTransactionCallback<T> arg0)
|
<T>
Map<String, T>
|
getComponentsOfType(Class<T> arg0)
|
|
Public Constructors
public
DefaultHostContextAccessor
()
Public Methods
public
T
doInTransaction
(HostTransactionCallback<T> hostTransactionCallback)
No transactions in JIRA so this is effectively a NoOp.
Parameters
hostTransactionCallback
| the action to be executed. |
Returns
- Result of the 'transaction'
public
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.
Parameters
iface
| The class that components returned need to implement. |
Returns
- A map of component key -> instance.