public class Notifier extends java.lang.Object
A Notifier class may choose to override any of the methods. The default implementation does nothing.
Notifier methods are called from within a transaction.
Modifier | Constructor and Description |
---|---|
protected |
Notifier()
Prevent direct instantiation.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addToClassPath(java.io.File file)
Adds to the class path of the current JVM.
|
protected java.lang.String[] |
getApplicationParameters()
Returns the application parameters provided to the deploy tool when the
current JVM was deployed.
|
protected java.io.File |
getOutputDirectory()
Returns a server-side directory which can be used for creating JVM
specific artifacts.
|
protected java.io.File |
getResource(java.lang.String resourceName)
Deprecated.
|
protected java.io.File |
getTargetArchive()
Returns a handle to a local copy of the target archive or file
specified to the
deploy tool when the current JVM was deployed.
|
protected java.lang.String |
getTargetName()
Returns the name of the target provided to the deploy tool when the
current JVM was deployed.
|
protected void |
postConfigurationInitialize()
Called after all configuration files for the component currently being
activated have been loaded and activated.
|
protected void |
postConfigurationTerminate()
Called during component deactivation after all of the configuration files
from this component have been deactivated and unloaded.
|
protected void |
preConfigurationInitialize()
Called before any configuration files for the component currently being
activated have been loaded and activated.
|
protected void |
preConfigurationTerminate()
Called during component deactivation before any of the configuration
files from this component have been deactivated and unloaded.
|
protected Notifier()
protected void preConfigurationInitialize() throws ComponentException
ComponentException
- Used to communicate a fatal initialize error.protected void postConfigurationInitialize() throws ComponentException
ComponentException
- Used to communicate a fatal initialization
error.protected void preConfigurationTerminate()
protected void postConfigurationTerminate()
protected final java.lang.String getTargetName()
protected final java.io.File getTargetArchive()
@Deprecated protected final java.io.File getResource(java.lang.String resourceName) throws ComponentException
resourceName
- Name of the file to find. Path information
is ignored.ComponentException
- - no longer used.protected final java.lang.String[] getApplicationParameters()
protected final java.io.File getOutputDirectory()
Null is returned if the output directory found or created.
protected final void addToClassPath(java.io.File file)
file
- The jar or directory to add to the class path.