org.glassfish.paas.tenantmanager.entity
Interface TenantServices

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy

public interface TenantServices
extends org.jvnet.hk2.config.ConfigBeanProxy

Tenant services.

Author:
Andriy Zhdanov

Nested Class Summary
static class TenantServices.Duck
           
 
Method Summary
 List<DefaultService> getDefaultServices()
          DefaultService types for a tenant.
 List<ExternalService> getExternalServices()
          Services provisioned externally.
<T extends TenantService>
T
getServiceByType(Class<T> type)
          Get particular service by type.
 List<SharedService> getSharedServices()
          Services shared by various environments of a tenant.
 List<TenantService> getTenantServices()
          All tenant services.
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
 

Method Detail

getTenantServices

List<TenantService> getTenantServices()
All tenant services.

Returns:
Services.

getDefaultServices

@DuckTyped
List<DefaultService> getDefaultServices()
DefaultService types for a tenant. DefaultService is mapping to default a service would take if the deployer does not specify which one to use. For example a tenant can configure that whenever database service is needed by an app and the app has not specified any mapping to database, the default is going to be pointing to a shared database running somewhere.

Returns:
Services.

getSharedServices

@DuckTyped
List<SharedService> getSharedServices()
Services shared by various environments of a tenant. SharedServices These are services that are shared by various environments of a tenant. It's not yet clear how these services will be deployed and would they always be ExternalService or not.

Returns:
Services.

getExternalServices

@DuckTyped
List<ExternalService> getExternalServices()
Services provisioned externally. ExternalServices refers to services that are not provisioned by BG. For example a physical database installation that is shared enterprise wise if BG is use on premise.

Returns:
Services.

getServiceByType

@DuckTyped
<T extends TenantService> T getServiceByType(Class<T> type)
Get particular service by type.

Returns:
Service. May be null.


Copyright © 2012. All Rights Reserved.