All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.wizards.tasks.FilesystemParamsTask
java.lang.Object
|
+----com.sun.wizards.core.Task
|
+----com.sun.wizards.tasks.FilesystemParamsTask
- public class FilesystemParamsTask
- extends Task
- implements Serializable
The filesystem paramerters task discovers filesystem
areas on the target platform. The target areas include
the users home directory, the users current directory,
the system executable directory (a directory in which
singular executable files might be found), and the
system library directory (where shared libraries might
be found).
All of this information will be set into the wizard
state.
This is a simple Task with one constructor that can only
be used one way, that is to gather platform-specific information
for use during the life of the wizard. You include this in
any sequence, usually an initialization or beginning sequence:
Sequence initSequence = new Sequence();
initSequence.addTask(new FilesystemParamsTask());
initSequence.addTask(anotherTask);
initSequence.addTask(andAnother);
-
FilesystemParamsTask()
- Creates a FilesystemParamsTask.
-
addRuntimeResources(Vector)
- Add the runtime class requirements to the specified vector.
-
perform()
- Perform this task.
-
registerCurrentDirectory(WizardState)
- This method registers the user's current directory with the
wizard state.
-
registerFileSeparator(WizardState)
- This method registers the file separator with the
wizard state.
-
registerSystemExecutable(WizardState)
- This method registers the system executable directory with the
wizard state.
-
registerSystemLibrary(WizardState)
- This method registers the system library directory with the
wizard state.
-
registerUserDirectory(WizardState)
- This method registers the user's home directory with the
wizard state.
FilesystemParamsTask
public FilesystemParamsTask()
- Creates a FilesystemParamsTask.
perform
public void perform()
- Perform this task. This method finds the platform-specific
paths and sets them into the wizard state.
- Overrides:
- perform in class Task
registerFileSeparator
protected void registerFileSeparator(WizardState wizardState)
- This method registers the file separator with the
wizard state.
- Parameters:
- wizardState - The wizard state.
registerUserDirectory
protected void registerUserDirectory(WizardState wizardState)
- This method registers the user's home directory with the
wizard state.
- Parameters:
- wizardState - The wizard state.
registerCurrentDirectory
protected void registerCurrentDirectory(WizardState wizardState)
- This method registers the user's current directory with the
wizard state.
- Parameters:
- wizardState - The wizard state.
registerSystemExecutable
protected void registerSystemExecutable(WizardState wizardState)
- This method registers the system executable directory with the
wizard state. The system executable directory is where
singular executable binary files would be found.
- Parameters:
- wizardState - The wizard state.
registerSystemLibrary
protected void registerSystemLibrary(WizardState wizardState)
- This method registers the system library directory with the
wizard state. The system library directory is where
shared library files would be found.
- Parameters:
- wizardState - The wizard state.
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Add the runtime class requirements to the specified vector.
- Parameters:
- resourceVector - The vector containing all runtime resources
for this wizard.
- Overrides:
- addRuntimeResources in class Task
All Packages Class Hierarchy This Package Previous Next Index