|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="6.2", sinceVersion="6.0") public interface IDeploymentManager
Handles the deployment of portal resources.
All methods in this manager execute in their own transaction.
Method Summary | |
---|---|
ModuleType |
detectModuleType(InputStream moduleArchive)
Detects the module type of an archive, based on its contents. |
IModule |
distribute(String moduleId,
InputStream moduleArchive)
Distributes a module archive to the portal servers. |
Class<?> |
getClass(String className)
Deprecated. Since 6.0.0 deployed resources or classes should be accessed using the class loader provided by getClassLoader() .
Uses of IDeploymentManager.getClass(className)
method may be replaced by
IDeploymentManager.getClassLoader() .loadClass(className) . |
ClassLoader |
getClassLoader()
Returns a class loader that provides access to classes and resources in all deployed JAR modules and the portal. |
IModule |
getModule(String moduleId)
Returns the module with the specified identifier. |
Collection<IModule> |
getModules(ModuleType moduleType)
Returns the currently installed modules of the specified type. |
IPortalDeployer |
getPortalDeployer(DeployConfig deployConfig)
Deprecated. Since 5.0.0 the use of IPortalDeployer
has been deprecated. |
void |
registerDeployer(IPortalDeployer deployer)
Deprecated. Since 5.0.0 the use of IPortalDeployer
has been deprecated. |
void |
start(IModule module)
Starts the execution of a module. |
void |
stop(IModule module)
Stops the execution of a module. |
void |
undeploy(IModule module)
Undeploys a module from the portal servers. |
boolean |
unregisterDeployer(IPortalDeployer deployer)
Deprecated. Since 5.0.0 the use of IPortalDeployer
has been deprecated. |
Method Detail |
---|
@Deprecated void registerDeployer(IPortalDeployer deployer)
IPortalDeployer
has been deprecated.
deployer
- the deployer.@Deprecated boolean unregisterDeployer(IPortalDeployer deployer)
IPortalDeployer
has been deprecated.
deployer
- the deployer.
@Deprecated IPortalDeployer getPortalDeployer(DeployConfig deployConfig) throws PortalException
IPortalDeployer
has been deprecated.
deployConfig
- the deployment specification.
PortalException
- if there is no deployer that can handle the
specified deployment.@Deprecated Class<?> getClass(String className) throws ClassNotFoundException
getClassLoader()
.
Uses of IDeploymentManager.getClass(className)
method may be replaced by
IDeploymentManager.getClassLoader()
.loadClass(className)
.
Class
object associated with the class or
interface with the given string name, within the deployed JAR library
modules or the shared level class loader.
className
- the fully qualified name of the desired class.
Class
object for the class with the specified name.
ClassNotFoundException
- if the class cannot be located.Class#forName(String)}
ClassLoader getClassLoader()
When the returned class loader is used to obtain a class, the search is first done in the currently running modules and then in the portal main class loader.
When the returned class loader is used to obtain a resource,
the search is first done in the lumisdata/def
folder
(for backwards compatibility), then in currently running modules and
then in the portal main class loader.
Main uses are:
ClassLoader.loadClass(String)
: for obtaining a Class
.ClassLoader.getResourceAsStream(String)
, ClassLoader.getResource(String)
or ClassLoader.getResources(String)
:
for accessing resources.
ModuleType detectModuleType(InputStream moduleArchive) throws IOException, IllegalModuleArchiveException, PortalException
moduleArchive
- the archive content input stream.
IOException
- if an I/O error occurs.
IllegalModuleArchiveException
- if the archive module type
could not be recognized.
PortalException
IModule distribute(String moduleId, InputStream moduleArchive) throws IOException, IllegalModuleArchiveException, PortalException
moduleId
- the identifier for the module being deployed.moduleArchive
- the module archive input stream.
IOException
- if an I/O error occurs.
IllegalModuleArchiveException
- if the archive module type
could not be recognized.
PortalException
void start(IModule module) throws PortalException
module
- the module.
PortalException
void stop(IModule module) throws PortalException
module
- the module.
PortalException
void undeploy(IModule module) throws PortalException
module
- the module to be undeployed.
PortalException
Collection<IModule> getModules(ModuleType moduleType) throws PortalException
moduleType
- the module type.
PortalException
IModule getModule(String moduleId) throws PortalException
moduleId
- the module identifier.
PortalObjectNotFoundException
- if no module with the given
identifier was found.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |