Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.jdeveloper.deploy
Interface DeploymentModuleFactory


public interface DeploymentModuleFactory

Interface to create a DeploymentModule based on a DeployShell.


Field Summary
static java.lang.String DATA_KEY
           
 
Method Summary
 DeploymentModule create(java.lang.Class<?> elementClass, oracle.jdeveloper.deploy.common.ModuleContext moduleContext)
          Create a DeploymentModule, based on contents of Shell.
 

Field Detail

DATA_KEY

static final java.lang.String DATA_KEY
Method Detail

create

DeploymentModule create(java.lang.Class<?> elementClass,
                        oracle.jdeveloper.deploy.common.ModuleContext moduleContext)
                        throws DeployException
Create a DeploymentModule, based on contents of Shell. A factory can return null, if it does not have enough context in the DeployShell to create a module.

If a Factory wants to inherit the default Jdeveloper behaviour, but modify some options in the DeploymentModule after its been created, it can itself create a DeploymentModule for the desired default, and then modify it before returning.

// This example shows a factory itself calling a factory to create // the default DeploymentModule for ArchiveProfile, and modifying it before // returning. final DeployShell shell = context.getDeployShell(); final DeploymentModuleFactory factory = DeployUtil.getDeploymentModuleFactory(shell); DeploymentModule default = factory.create( ArchiveProfile.class, context); default.setIncludeManifest( true ); return default;

Parameters:
elementClass - the Class of the element being deployed, the actual element may be obtained by calling moduleContext.getDeployElement(). The class may differ from the element being deployed so a cast should not be attempted.
moduleContext - the context in which the module should be created
Returns:
a DeploymentModule, null if this factory cannot create one.
Throws:
DeployException - if an error occurred while creating the module.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.