public interface

TypeAccessor

com.atlassian.applinks.spi.util.TypeAccessor
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract <T extends ApplicationType> T getApplicationType(Class<T> typeClass)
abstract Class<? extends AuthenticationProvider> getAuthenticationProviderClass(String className)
abstract Iterable<? extends ApplicationType> getEnabledApplicationTypes()
abstract Iterable<? extends EntityType> getEnabledEntityTypes()
abstract Iterable<? extends EntityType> getEnabledEntityTypesForApplicationType(ApplicationType applicationType)
abstract <T extends EntityType> T getEntityType(Class<T> typeClass)

Public Methods

public abstract T getApplicationType (Class<T> typeClass)

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

public abstract Class<? extends AuthenticationProvider> getAuthenticationProviderClass (String className)

Parameters
className the full class name of a registered AuthenticationProvider (must be equal to the result of a call to getName()).
Returns

public abstract Iterable<? extends ApplicationType> getEnabledApplicationTypes ()

Returns
  • a collection of all enabled ApplicationType instances registered via the plugin system

public abstract Iterable<? extends EntityType> getEnabledEntityTypes ()

Returns
  • a collection of all enabled EntityType instances registered via the plugin system

public abstract Iterable<? extends EntityType> getEnabledEntityTypesForApplicationType (ApplicationType applicationType)

Returns

public abstract T getEntityType (Class<T> typeClass)

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.