*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment.ioc
Class DeploymentContextFactory
java.lang.Object
com.sas.services.deployment.ioc.DeploymentContextFactory
@SASScope("ALL")
@BinaryCompatibilityOnly
public class DeploymentContextFactory
extends Object
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
FieldsModifier and TypeFieldDescriptionstatic final StringContainer type: JBoss Microcontainer.static final StringContainer type: Spring Framework.static final StringThis property may be used to designate the type of container in which the services are to be deployed.static final StringThis property may be used to designate the fully-qualified Java name for a class that extendsAbstractDeploymentStrategywhich provides the implementation of the deployment strategy.static final StringFully-qualified Java classname of aAbstractDeploymentStrategyfor use with a JBoss Microcontainer.static final StringFully-qualified Java classname of aAbstractDeploymentStrategyfor use with a Spring Framework container. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentDescriptorContextcreateDeploymentContext(Properties properties, ClassLoader classLoader) Creates a deployment context associated with a strategy.static final booleanisValidContainerType(String containerType) Determines if the container type is valid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
PROPERTYNAME_STRATEGYCLASSNAME
public static final String PROPERTYNAME_STRATEGYCLASSNAMEThis property may be used to designate the fully-qualified Java name for a class that extendsAbstractDeploymentStrategywhich provides the implementation of the deployment strategy.If specified, this property will take precedence over the
PROPERTYNAME_CONTAINERproperty.- See Also:
-
PROPERTYNAME_CONTAINER
public static final String PROPERTYNAME_CONTAINERThis 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_STRATEGYCLASSNAMEis not specified, then this property must be specified to designate the container type using one of the supported container types.- See Also:
-
CONTAINER_JBOSSMC
public static final String CONTAINER_JBOSSMCContainer type: JBoss Microcontainer.- See Also:
-
CONTAINER_SPRING
public static final String CONTAINER_SPRINGContainer type: Spring Framework.- See Also:
-
STRATEGY_JBOSSMC
public static final String STRATEGY_JBOSSMCFully-qualified Java classname of aAbstractDeploymentStrategyfor use with a JBoss Microcontainer.- See Also:
-
STRATEGY_SPRING
public static final String STRATEGY_SPRINGFully-qualified Java classname of aAbstractDeploymentStrategyfor use with a Spring Framework container.- See Also:
-
-
Method Details
-
createDeploymentContext
public static DeploymentDescriptorContext createDeploymentContext(Properties properties, 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 thePROPERTYNAME_STRATEGYCLASSNAMEpropertyclassLoader- The class loader which will load the class that implements the strategy required to create the context.- Returns:
- A non-
nulldeployment descriptor context. - Throws:
ServiceException- if unable to create a deployment context.
-
isValidContainerType
public static final boolean isValidContainerType(String containerType) Determines if the container type is valid.- Parameters:
containerType-- Returns:
trueif the container type is valid.
-