org.apache.qpid.server.registry
Interface IApplicationRegistry

All Known Implementing Classes:
ApplicationRegistry, ConfigurationFileApplicationRegistry, NullApplicationRegistry

public interface IApplicationRegistry


Method Summary
 AuthenticationManager getAuthenticationManager()
           
 org.apache.commons.configuration.Configuration getConfiguration()
          Get the low level configuration.
<T> T
getConfiguredObject(java.lang.Class<T> instanceType)
          This gets access to a "configured object".
 ExchangeFactory getExchangeFactory()
           
 ExchangeRegistry getExchangeRegistry()
           
 ManagedObjectRegistry getManagedObjectRegistry()
           
 MessageStore getMessageStore()
           
 QueueRegistry getQueueRegistry()
           
 void initialise()
          Initialise the application registry.
 

Method Detail

initialise

void initialise()
                throws java.lang.Exception
Initialise the application registry. All initialisation must be done in this method so that any components that need access to the application registry itself for initialisation are able to use it. Attempting to initialise in the constructor will lead to failures since the registry reference will not have been set.

Throws:
java.lang.Exception

getConfiguredObject

<T> T getConfiguredObject(java.lang.Class<T> instanceType)
This gets access to a "configured object". A configured object has fields populated from a the configuration object (Commons Configuration) automatically, where it has the appropriate attributes defined on fields. Application registry implementations can choose the refresh strategy or caching approach.

Parameters:
instanceType - the type of object you want initialised. This must be unique - i.e. you can only have a single object of this type in the system.
Returns:
the configured object

getConfiguration

org.apache.commons.configuration.Configuration getConfiguration()
Get the low level configuration. For use cases where the configured object approach is not required you can get the complete configuration information.

Returns:
a Commons Configuration instance

getQueueRegistry

QueueRegistry getQueueRegistry()

getExchangeRegistry

ExchangeRegistry getExchangeRegistry()

getExchangeFactory

ExchangeFactory getExchangeFactory()

getManagedObjectRegistry

ManagedObjectRegistry getManagedObjectRegistry()

getAuthenticationManager

AuthenticationManager getAuthenticationManager()

getMessageStore

MessageStore getMessageStore()