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 Summary
Constructors Constructor Description DeploymentFileData(File file)
DeploymentFileData(File file, Deployer deployer)
DeploymentFileData(URL url, Deployer deployer, ClassLoader classLoader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deploy()
String
getAbsolutePath()
ClassLoader
getClassLoader()
Deployer
getDeployer()
File
getFile()
static String
getFileExtension(String fileName)
String
getName()
Get the name of the file.Object
getServiceMetaData()
URL
getUrl()
static boolean
isModuleArchiveFile(String filename)
static boolean
isServiceArchiveFile(String filename)
Checks whether a given file is a jar or an aar file.void
setClassLoader(boolean isDirectory, ClassLoader parent, File file, boolean isChildFirstClassLoading)
void
setClassLoader(ClassLoader classLoader)
void
setDeployer(Deployer deployer)
void
setServiceMetaData(Object serviceMetaData)
void
setUrl(URL url)
-
-
-
Method Detail
-
getUrl
public URL getUrl()
-
setUrl
public void setUrl(URL url)
-
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
-
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.
-
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
-
getServiceMetaData
public Object getServiceMetaData()
-
setServiceMetaData
public void setServiceMetaData(Object serviceMetaData)
-
-