com.sun.enterprise.deployment.io
Class DeploymentDescriptorFileFactory

java.lang.Object
  extended by com.sun.enterprise.deployment.io.DeploymentDescriptorFileFactory
All Implemented Interfaces:
ContractProvider

@Service
public class DeploymentDescriptorFileFactory
extends java.lang.Object
implements ContractProvider

Factory for DeploymentDescriptorFile implementations

Author:
Jerome Dochez

Constructor Summary
DeploymentDescriptorFileFactory()
           
 
Method Summary
static DeploymentDescriptorFile getDDFileFor(java.io.File xmlFile)
          Creates and return the appropriate DeploymentDescriptorFile depending on the XML file passed.
static DeploymentDescriptorFile getDDFileFor(RootDeploymentDescriptor descriptor)
          Creates and return an appropriate DeploymentDescriptorFile capable of handling the passed descriptor
static DeploymentDescriptorFile getDDFileFor(XModuleType type)
          Creates and return an appropriate DeploymentDescriptorFile capable of handling the passed descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentDescriptorFileFactory

public DeploymentDescriptorFileFactory()
Method Detail

getDDFileFor

public static DeploymentDescriptorFile getDDFileFor(RootDeploymentDescriptor descriptor)
Creates and return an appropriate DeploymentDescriptorFile capable of handling the passed descriptor

Parameters:
descriptor - used to identify the associated DeploymentDescriptorFile
Returns:
the created DeploymentDescriptorFile

getDDFileFor

public static DeploymentDescriptorFile getDDFileFor(XModuleType type)
Creates and return an appropriate DeploymentDescriptorFile capable of handling the passed descriptor

Parameters:
descriptor - used to identify the associated DeploymentDescriptorFile
Returns:
the created DeploymentDescriptorFile

getDDFileFor

public static DeploymentDescriptorFile getDDFileFor(java.io.File xmlFile)
                                             throws java.lang.Exception
Creates and return the appropriate DeploymentDescriptorFile depending on the XML file passed.

Parameters:
input - xml file
Returns:
the DeploymentDescriptorFile responsible for handling the xml file
Throws:
java.lang.Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.