***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.deployment.ioc
Class DeploymentContextFactory

com.sas.services.deployment.ioc.DeploymentContextFactory

public class DeploymentContextFactory

Factory used to create a DeploymentDescriptorContext which may be used to define a descriptor for foundation services which are to be deployed in a particular type of container.

Since:
9.2

Field Summary
static java.lang.String CONTAINER_JBOSSMC
          Container type: JBoss Microcontainer.
static java.lang.String CONTAINER_SPRING
          Container type: Spring Framework.
static java.lang.String PROPERTYNAME_CONTAINER
          This property may be used to designate the type of container in which the services are to be deployed.
static java.lang.String PROPERTYNAME_STRATEGYCLASSNAME
          This property may be used to designate the fully-qualified Java name for a class that extends AbstractDeploymentStrategy which provides the implementation of the deployment strategy.
static java.lang.String STRATEGY_JBOSSMC
          Fully-qualified Java classname of a AbstractDeploymentStrategy for use with a JBoss Microcontainer.
static java.lang.String STRATEGY_SPRING
          Fully-qualified Java classname of a AbstractDeploymentStrategy for use with a Spring Framework container.
 
Method Summary
static DeploymentDescriptorContext createDeploymentContext(java.util.Properties properties, java.lang.ClassLoader classLoader)
          Creates a deployment context associated with a strategy.
static boolean isValidContainerType(java.lang.String containerType)
          Determines if the container type is valid.
 

Field Detail

PROPERTYNAME_STRATEGYCLASSNAME

public static final java.lang.String PROPERTYNAME_STRATEGYCLASSNAME
This property may be used to designate the fully-qualified Java name for a class that extends AbstractDeploymentStrategy which provides the implementation of the deployment strategy.

If specified, this property will take precedence over the PROPERTYNAME_CONTAINER property.

See Also:
PROPERTYNAME_CONTAINER, Constant Field Values

PROPERTYNAME_CONTAINER

public static final java.lang.String PROPERTYNAME_CONTAINER
This property may be used to designate the type of container in which the services are to be deployed. Assign one of the following values to this property.

If the PROPERTYNAME_STRATEGYCLASSNAME is not specified, then this property must be specified to designate the container type using one of the supported container types.

See Also:
PROPERTYNAME_STRATEGYCLASSNAME, Constant Field Values

CONTAINER_JBOSSMC

public static final java.lang.String CONTAINER_JBOSSMC
Container type: JBoss Microcontainer.

See Also:
Constant Field Values

CONTAINER_SPRING

public static final java.lang.String CONTAINER_SPRING
Container type: Spring Framework.

See Also:
Constant Field Values

STRATEGY_JBOSSMC

public static final java.lang.String STRATEGY_JBOSSMC
Fully-qualified Java classname of a AbstractDeploymentStrategy for use with a JBoss Microcontainer.

See Also:
Constant Field Values

STRATEGY_SPRING

public static final java.lang.String STRATEGY_SPRING
Fully-qualified Java classname of a AbstractDeploymentStrategy for use with a Spring Framework container.

See Also:
Constant Field Values
Method Detail

createDeploymentContext

public static DeploymentDescriptorContext createDeploymentContext(java.util.Properties properties,
                                                                  java.lang.ClassLoader classLoader)
                                                           throws ServiceException
Creates a deployment context associated with a strategy.

The properties specify the fully-qualified name of the Java class implementation of the AbstractDeploymentStrategy using the key PROPERTYNAME_STRATEGYCLASSNAME.

Parameters:
properties - Properties used to intialize a deployment descriptor context. The fully-qualified name of the strategy class must be specified using the PROPERTYNAME_STRATEGYCLASSNAME property
classLoader - The class loader which will load the class that implements the strategy required to create the context.
Returns:
A non-null deployment descriptor context.
Throws:
ServiceException - if unable to create a deployment context.

isValidContainerType

public static final boolean isValidContainerType(java.lang.String containerType)
Determines if the container type is valid.

Parameters:
containerType -
Returns:
true if the container type is valid.

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.