org.apache.pluto.util.install.file
Class FileSystemInstaller

java.lang.Object
  extended by org.apache.pluto.util.install.file.FileSystemInstaller
All Implemented Interfaces:
PortalInstaller
Direct Known Subclasses:
Jetty5FileSystemInstaller, Tomcat5FileSystemInstaller

public abstract class FileSystemInstaller
extends java.lang.Object
implements PortalInstaller

File System based installer. Copies files to the appropriate locations.


Constructor Summary
FileSystemInstaller()
           
 
Method Summary
protected  void copyFilesToDirectory(java.util.Collection dependencies, java.io.File destination)
           
protected  void copyFileToDirectory(java.io.File file, java.io.File destination)
           
protected abstract  java.io.File getEndorsedDir(InstallationConfig config)
           
protected abstract  java.io.File getSharedDir(InstallationConfig config)
           
protected abstract  java.io.File getWebAppDir(InstallationConfig config)
           
 void install(InstallationConfig config)
          NOTE: Order is important.
abstract  boolean isValidInstallationDirectory(java.io.File installDir)
           
protected  void removeFilesFromDirectory(java.util.Collection dependencies, java.io.File destination)
           
 void uninstall(InstallationConfig config)
           
abstract  void writeConfiguration(InstallationConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemInstaller

public FileSystemInstaller()
Method Detail

copyFilesToDirectory

protected void copyFilesToDirectory(java.util.Collection dependencies,
                                    java.io.File destination)
                             throws java.io.IOException
Throws:
java.io.IOException

removeFilesFromDirectory

protected void removeFilesFromDirectory(java.util.Collection dependencies,
                                        java.io.File destination)
                                 throws java.io.IOException
Throws:
java.io.IOException

copyFileToDirectory

protected void copyFileToDirectory(java.io.File file,
                                   java.io.File destination)
                            throws java.io.IOException
Throws:
java.io.IOException

install

public void install(InstallationConfig config)
             throws UtilityException
NOTE: Order is important. If the server is running, we want to make sure that the correct order is preserved 1) Install endorsed dependencies 2) Install shared dependencies 4) Prep Time -- Create a domain directory for the portal -- Init the configs holder 5) Install the Portlet Applications 6) Install the Portal Application 7) Finally, install the configs

Specified by:
install in interface PortalInstaller
Parameters:
config -
Throws:
UtilityException

writeConfiguration

public abstract void writeConfiguration(InstallationConfig config)
                                 throws java.io.IOException
Throws:
java.io.IOException

getEndorsedDir

protected abstract java.io.File getEndorsedDir(InstallationConfig config)

getSharedDir

protected abstract java.io.File getSharedDir(InstallationConfig config)

getWebAppDir

protected abstract java.io.File getWebAppDir(InstallationConfig config)

uninstall

public void uninstall(InstallationConfig config)
               throws UtilityException
Specified by:
uninstall in interface PortalInstaller
Throws:
UtilityException

isValidInstallationDirectory

public abstract boolean isValidInstallationDirectory(java.io.File installDir)
Specified by:
isValidInstallationDirectory in interface PortalInstaller


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.