Class DeploymentFileData

java.lang.Object
org.apache.axis2.deployment.repository.util.DeploymentFileData

public class DeploymentFileData extends Object
DeploymentFileData represents a "thing to deploy" in Axis2. It consists of a file, a deployment ClassLoader, and a Deployer.
  • Constructor Details

    • DeploymentFileData

      public DeploymentFileData(File file)
    • DeploymentFileData

      public DeploymentFileData(File file, Deployer deployer)
    • DeploymentFileData

      public DeploymentFileData(File file, Deployer deployer, String artifactIdentifier, HashMap<String,String> cAppDependencies)
  • Method Details

    • getAbsolutePath

      public String getAbsolutePath()
    • getClassLoader

      public ClassLoader getClassLoader()
    • getFile

      public File getFile()
    • getName

      public String getName()
      Get the name of the file.
      Returns:
      the name of the referenced file
    • getServiceName

      public String getServiceName()
      Deprecated.
      please use getName() instead - this will disappear after 1.3.
      Get the name of the file.
      Returns:
      the name of the referenced file
    • isModuleArchiveFile

      public static boolean isModuleArchiveFile(String filename)
    • isServiceArchiveFile

      public static boolean isServiceArchiveFile(String filename)
      Checks whether a given file is a jar or an aar file.
      Parameters:
      filename - file to check
      Returns:
      Returns boolean.
    • getFileExtension

      public static String getFileExtension(String fileName)
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)
    • setClassLoader

      public void setClassLoader(boolean isDirectory, ClassLoader parent, File file, boolean isChildFirstClassLoading) throws AxisFault
      Throws:
      AxisFault
    • getDeployer

      public Deployer getDeployer()
    • setDeployer

      public void setDeployer(Deployer deployer)
    • deploy

      public void deploy() throws DeploymentException
      Throws:
      DeploymentException
    • getArtifactIdentifier

      public String getArtifactIdentifier()
    • getCAppDependencies

      public HashMap<String,String> getCAppDependencies()
    • isVersionedDeployment

      public boolean isVersionedDeployment()
    • isEmbeddedCAR

      public boolean isEmbeddedCAR()
    • setEmbeddedCAR

      public void setEmbeddedCAR(boolean embeddedCAR)