com.atlassian.sal.core.component
Class DefaultComponentLocator

java.lang.Object
  extended by com.atlassian.sal.api.component.ComponentLocator
      extended by com.atlassian.sal.core.component.DefaultComponentLocator

public class DefaultComponentLocator
extends ComponentLocator


Constructor Summary
DefaultComponentLocator(HostContextAccessor accessor)
           
 
Method Summary
protected
<T> T
getComponentInternal(Class<T> iface)
          Gets the requested component, to be overridden for each application
protected
<T> T
getComponentInternal(Class<T> iface, String componentId)
          Gets the requested component, to be overridden for each application
protected
<T> Collection<T>
getComponentsInternal(Class<T> iface)
           
 
Methods inherited from class com.atlassian.sal.api.component.ComponentLocator
convertClassToName, getComponent, getComponent, getComponents, isInitialized, setComponentLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentLocator

public DefaultComponentLocator(HostContextAccessor accessor)
Method Detail

getComponentInternal

protected <T> T getComponentInternal(Class<T> iface)
Description copied from class: ComponentLocator
Gets the requested component, to be overridden for each application

Specified by:
getComponentInternal in class ComponentLocator
Parameters:
iface - The interface to lookup
Returns:
The implementation

getComponentInternal

protected <T> T getComponentInternal(Class<T> iface,
                                     String componentId)
Description copied from class: ComponentLocator
Gets the requested component, to be overridden for each application

Specified by:
getComponentInternal in class ComponentLocator
Parameters:
iface - The interface to lookup
componentId - key of the component
Returns:
The implementation

getComponentsInternal

protected <T> Collection<T> getComponentsInternal(Class<T> iface)
Specified by:
getComponentsInternal in class ComponentLocator


Copyright © 2011 Atlassian. All Rights Reserved.