JBoss API: Class InstallerFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.deployment.InstallerFactory
This class is used by the J2eeDeployer to create, remove or find a particular Deployment. It uses and instance of Installer to create a Deployment.
Installer
Field Summary | |
protected java.io.File |
baseDir
the deployment base directory (for the temporary files) |
protected Logger |
log
the logger if there is something to say |
Constructor Summary | |
InstallerFactory(java.io.File _tmpDir,
Logger _log)
Constructs a new InstallerFactory, only one is needed per J2eeDeployer |
Method Summary | |
Deployment |
findDeployment(java.lang.String _pattern)
Finds a particular Deployment. |
static java.io.FilenameFilter |
getDeployableFilter()
|
Deployment[] |
getDeployments()
Finds all Deployments currently installed. |
Deployment |
install(java.net.URL src)
installs the J2ee component the URL points to and returns a Deployment object as its representation. |
void |
unclutter()
Does some cleanup in the deployments. |
void |
uninstall(Deployment _d)
uninstalls the files represented by the given Deployment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.File baseDir
protected Logger log
Constructor Detail |
public InstallerFactory(java.io.File _tmpDir, Logger _log) throws java.io.IOException
_tmpDir
- the temporary deployment directory_log
- the Log for outputMethod Detail |
public static java.io.FilenameFilter getDeployableFilter()
public Deployment install(java.net.URL src) throws J2eeDeploymentException, java.io.IOException
src
- J2ee module (ejb/war/ear) to deployJ2eeDeploymentException
- if the module is not installable for some reasons
(syntactical errors, ...?)java.io.IOException
- if a file operation (_src download jar file extraction) failspublic void uninstall(Deployment _d) throws java.io.IOException
_d
- Deployment to removejava.io.IOException
- if file deletion failspublic Deployment[] getDeployments()
public Deployment findDeployment(java.lang.String _pattern)
_pattern
- wether the name of the application or the src URL of the application
(the one that was given on install (URL))public void unclutter() throws java.io.IOException
java.io.IOException
- since file deletions can fail
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |