com.liferay.portal.kernel.deploy.sandbox
Class SandboxDeployDir

java.lang.Object
  extended by com.liferay.portal.kernel.deploy.sandbox.SandboxDeployDir

public class SandboxDeployDir
extends java.lang.Object

View Source

Author:
Igor Spasic, Brian Wing Shun Chan

Field Summary
static java.lang.String DEFAULT_NAME
           
 
Constructor Summary
SandboxDeployDir(java.lang.String name, java.io.File deployDir, long interval, java.util.List<SandboxDeployListener> sandboxDeployListeners)
           
 
Method Summary
protected  void deployDir(java.io.File file)
           
 java.io.File getDeployDir()
           
 long getInterval()
           
 java.util.List<SandboxDeployListener> getListeners()
           
 java.lang.String getName()
           
 void registerListener(SandboxDeployListener listener)
           
protected  void scanDirectory()
           
 void start()
           
 void stop()
           
protected  void undeployDir(java.io.File file)
           
 void unregisterListener(SandboxDeployListener sandboxDeployListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final java.lang.String DEFAULT_NAME
See Also:
Constant Field Values
Constructor Detail

SandboxDeployDir

public SandboxDeployDir(java.lang.String name,
                        java.io.File deployDir,
                        long interval,
                        java.util.List<SandboxDeployListener> sandboxDeployListeners)
Method Detail

getDeployDir

public java.io.File getDeployDir()

getInterval

public long getInterval()

getListeners

public java.util.List<SandboxDeployListener> getListeners()

getName

public java.lang.String getName()

registerListener

public void registerListener(SandboxDeployListener listener)

start

public void start()

stop

public void stop()

unregisterListener

public void unregisterListener(SandboxDeployListener sandboxDeployListener)

deployDir

protected void deployDir(java.io.File file)

scanDirectory

protected void scanDirectory()

undeployDir

protected void undeployDir(java.io.File file)