com.atlassian.applinks.spi.util
Interface TypeAccessor


public interface TypeAccessor

Provides access to singleton instances of EntityType and ApplicationType and registered AuthenticationProvider classes.

Since:
3.0

Method Summary
<T extends ApplicationType>
T
getApplicationType(java.lang.Class<T> typeClass)
           
 java.lang.Class<? extends AuthenticationProvider> getAuthenticationProviderClass(java.lang.String className)
           
 java.lang.Iterable<? extends ApplicationType> getEnabledApplicationTypes()
           
 java.lang.Iterable<? extends EntityType> getEnabledEntityTypes()
           
 java.lang.Iterable<? extends EntityType> getEnabledEntityTypesForApplicationType(ApplicationType applicationType)
           
<T extends EntityType>
T
getEntityType(java.lang.Class<T> typeClass)
           
 

Method Detail

getEntityType

<T extends EntityType> T getEntityType(java.lang.Class<T> typeClass)
Type Parameters:
T - the type to the typeClass parameter
Parameters:
typeClass - the interface or superclass (extending EntityType of the type to retrieve. Generally this will be a class from a sub-package of com.atlassian.applinks.api.application
Returns:
an instance of the specified EntityType, or null if an implementation of the specified EntityType is not registered via the plugin system.

getApplicationType

<T extends ApplicationType> T getApplicationType(java.lang.Class<T> typeClass)
Type Parameters:
T - the type to the typeClass parameter
Parameters:
typeClass - the interface or superclass (extending ApplicationType of the type to retrieve. Generally this will be a class from com.atlassian.applinks.api.application
Returns:
an instance of the specified ApplicationType, or null if an implementation of the specified ApplicationType is not registered via the plugin system.

getAuthenticationProviderClass

java.lang.Class<? extends AuthenticationProvider> getAuthenticationProviderClass(java.lang.String className)
Parameters:
className - the full class name of a registered AuthenticationProvider (must be equal to the result of a call to Class.getName()).
Returns:
the Class of the specified AuthenticationProvider

getEnabledEntityTypes

java.lang.Iterable<? extends EntityType> getEnabledEntityTypes()
Returns:
a collection of all enabled EntityType instances registered via the plugin system

getEnabledEntityTypesForApplicationType

java.lang.Iterable<? extends EntityType> getEnabledEntityTypesForApplicationType(ApplicationType applicationType)
Returns:
the collection of EntityTypes that are supported by the given ApplicationType.

getEnabledApplicationTypes

java.lang.Iterable<? extends ApplicationType> getEnabledApplicationTypes()
Returns:
a collection of all enabled ApplicationType instances registered via the plugin system


Copyright © 2011 Atlassian. All Rights Reserved.