Interface OsidRuntimeManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, OsidRuntimeProfile, Sourceable
The OsidRuntimeManager represents and OSID platform and
contains the information required for running OSID implementations such as
search paths and configurations.
The OsidRuntimeManager is defined as an interface to provide
flexibility for managing an OSID environment. The instantiation of a
OsidRuntimeManager implementation is defined by the OSID platform.
The OsidRuntimeManager should be instantiated with a string
that identifies the application or environment current at the time of
instantiation. This key is used soley for the purpose of seeding the
configuration service as a means to enable lower level OSIDs to tune their
configuration in response to this key, or, it can be used by the
application to retrieve configuration data for itself.
-
Method Summary
Modifier and TypeMethodDescriptionGets the current configuration in the runtime environment.getManager(OSID osid, String implClassName, Version version) Finds, loads and instantiates providers of OSID managers.getProxyManager(OSID osid, String implementation, Version version) Finds, loads and instantiates providers of OSID managers.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface OsidRuntimeProfile
supportsConfigurationModifier and TypeMethodDescriptionbooleanTests if a configuration service is provided within this runtime environment.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getManager
OsidManager getManager(OSID osid, String implClassName, Version version) throws ConfigurationErrorException, NotFoundException, OperationFailedException Finds, loads and instantiates providers of OSID managers. Providers must conform to an OsidManager interface. The interfaces are defined in the OSID enumeration. For all OSID requests, an instance ofOsidManagerthat implements theOsidManagerinterface is returned. In bindings where permitted, this can be safely cast into the requested manager.- Parameters:
osid- represents the OSIDimplClassName- the name of the implementationversion- the minimum required OSID specification version- Returns:
- the manager of the service
- Throws:
ConfigurationErrorException- an error in configuring the implementationNotFoundException- the implementation class was not foundNullArgumentException-implClassNameorversionisnullOperationFailedException- unable to complete requestUnsupportedException-implClassNamedoes not support the requested OSID- Compliance:
mandatory- This method must be implemented.- Notes:
After- finding and instantiating the requested {@code OsidManager} , providers must invoke {@code OsidManager.initialize(OsidRuntimeManager)} where the environment is an instance of the current environment that includes the configuration for the service being initialized. The {@code OsidRuntimeManager} passed may include information useful for the configuration such as the identity of the service being instantiated.
-
getProxyManager
OsidProxyManager getProxyManager(OSID osid, String implementation, Version version) throws ConfigurationErrorException, NotFoundException, OperationFailedException Finds, loads and instantiates providers of OSID managers. Providers must conform to anOsidManagerinterface. The interfaces are defined in the OSID enumeration. For all OSID requests, an instance ofOsidManagerthat implements theOsidManagerinterface is returned. In bindings where permitted, this can be safely cast into the requested manager.- Parameters:
osid- represents the OSIDimplementation- the name of the implementationversion- the minimum required OSID specification version- Returns:
- the manager of the service
- Throws:
ConfigurationErrorException- an error in configuring the implementationNotFoundException- the implementation class was not foundNullArgumentException-implementationorversionisnullOperationFailedException- unable to complete requestUnsupportedException-implementationdoes not support the requested OSID- Compliance:
mandatory- This method must be implemented.- Notes:
After- finding and instantiating the requested {@code OsidManager} , providers must invoke {@code OsidManager.initialize(OsidRuntimeManager)} where the environment is an instance of the current environment that includes the configuration for the service being initialized. The {@code OsidRuntimeManager} passed may include information useful for the configuration such as the identity of the service being instantiated.
-
getConfiguration
Gets the current configuration in the runtime environment.- Returns:
- a configuration
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- an authorization failure occurredUnimplementedException- a configuration service is not supported- Compliance:
optional- This method must be implemented if {@code supportsConfiguration()} is {@code true} .
-