@StableMinor(version="12.0", sinceVersion="7.1") public interface IDeploymentManager
All methods in this manager execute in their own transaction.
Modifier and Type | Method and Description |
---|---|
IDeploymentExecutionPlan |
createModuleDeploymentProcess(InputStream moduleArchive,
boolean reprocessAllComponents)
Creates a
deployment execution plan for
deploying the given module. |
IDeploymentExecutionPlan |
createModuleUndeploymentProcess(List<IModule> modules)
Creates a
deployment execution plan for
undeployment of the given modules. |
IDeploymentExecutionPlan |
createPackageDeploymentProcess(File packageArchive,
boolean reprocessAllComponents)
Creates a
deployment execution plan for
deploying the given package. |
ModuleType |
detectModuleType(InputStream moduleArchive)
Detects the module type of an archive, based on its contents.
|
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.
|
IComponent |
getComponent(String componentId)
Returns the component with the specified identifier.
|
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. |
String |
submit(IDeploymentExecutionPlan executionPlan)
Submits the
execution plan created by
this manager and returns the created process identifier. |
boolean |
unregisterDeployer(IPortalDeployer deployer)
Deprecated.
Since 5.0.0 the use of
IPortalDeployer
has been deprecated. |
@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
IDeploymentExecutionPlan createModuleDeploymentProcess(InputStream moduleArchive, boolean reprocessAllComponents) throws IllegalModuleArchiveException, PortalException
deployment execution plan
for
deploying the given module. The returned Process
is not
yet ready to be executed.moduleArchive
- the module archive input stream.reprocessAllComponents
- indicates if all components present in the module must be
reprocessed.IllegalModuleArchiveException
- if the given archive is not a valid module archive.PortalException
submit(IDeploymentExecutionPlan)
IDeploymentExecutionPlan createPackageDeploymentProcess(File packageArchive, boolean reprocessAllComponents) throws IllegalPackageArchiveException, PortalException
deployment execution plan
for
deploying the given package.packageArchive
- the package file.reprocessAllComponents
- indicates if all components present in the package must be
reprocessed.IllegalPackageArchiveException
- if the given archive is not a valid package archive.PortalException
submit(IDeploymentExecutionPlan)
IDeploymentExecutionPlan createModuleUndeploymentProcess(List<IModule> modules) throws PortalException
deployment execution plan
for
undeployment of the given modules.modules
- the modules to be undeployed.PortalException
submit(IDeploymentExecutionPlan)
String submit(IDeploymentExecutionPlan executionPlan) throws PortalException
execution plan
created by
this manager and returns the created process
identifier.executionPlan
- the execution plan.process
identifier.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
IComponent getComponent(String componentId) throws PortalException
componentId
- the component identifier.PortalObjectNotFoundException
- if no component with the given
identifier was found.PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.