org.wso2.carbon.registry.core.service
Interface TenantRegistryLoader
public interface TenantRegistryLoader
Initializes the tenant's registry space. This interface also implements the
Axis2ConfigurationContextObserver
as well as the AuthenticationObserver
, which
will ensure that the registry will be automatically initialized during the lazy loading of a
tenant, or during the process of authentication.
Method Summary |
void |
loadTenantRegistry(int tenantId)
Load the Registry for the given tenant. |
loadTenantRegistry
void loadTenantRegistry(int tenantId)
throws RegistryException
- Load the Registry for the given tenant. This will automatically populate mounts, media types
and handlers for the tenant. It is a must that this method is called foe each tenant before
accessing the registry instance.
For the super-tenant, calling this method will have no impact, as the super-tenant will
always be loaded at the start-up.
- Parameters:
tenantId
- the tenant id of the system. The tenant id '0', corresponds to the super
tenant of the system, whereas identifiers greater than '0' correspond to
valid tenants.
- Throws:
RegistryException
Copyright © 2014 WSO2 Inc. All Rights Reserved.