|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
public static final java.lang.String PROPERTYNAME_STRATEGYCLASSNAME
AbstractDeploymentStrategy
which
provides the implementation of the deployment strategy.
If specified, this property will take precedence over the
PROPERTYNAME_CONTAINER
property.
PROPERTYNAME_CONTAINER
,
Constant Field Valuespublic static final java.lang.String PROPERTYNAME_CONTAINER
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.
PROPERTYNAME_STRATEGYCLASSNAME
,
Constant Field Valuespublic static final java.lang.String CONTAINER_JBOSSMC
public static final java.lang.String CONTAINER_SPRING
public static final java.lang.String STRATEGY_JBOSSMC
AbstractDeploymentStrategy
for
use with a JBoss Microcontainer.
public static final java.lang.String STRATEGY_SPRING
AbstractDeploymentStrategy
for
use with a Spring Framework container.
Method Detail |
---|
public static DeploymentDescriptorContext createDeploymentContext(java.util.Properties properties, java.lang.ClassLoader classLoader) throws ServiceException
The properties specify the fully-qualified name of the Java
class implementation of the AbstractDeploymentStrategy using the
key PROPERTYNAME_STRATEGYCLASSNAME
.
properties
- Properties used to intialize a deployment descriptor context.
The fully-qualified name of the strategy class must be specified
using the PROPERTYNAME_STRATEGYCLASSNAME
propertyclassLoader
- The class loader which will load the class
that implements the strategy required to create the context.
null
deployment descriptor context.
ServiceException
- if unable to create a deployment context.public static final boolean isValidContainerType(java.lang.String containerType)
containerType
-
true
if the container type is valid.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |