public class SimplePackageSelector extends Object implements InstallationController.PackageSelector
SimplePackageSelector
class provides simple command line dialog for selecting
root directories of installed PEAR packages, as well as PEAR package files, which contain
components that need to be installed.Constructor and Description |
---|
SimplePackageSelector()
Default constructor.
|
SimplePackageSelector(PrintWriter stdOut,
PrintWriter stdErr)
Constructor that takes given standard console streams writers.
|
Modifier and Type | Method and Description |
---|---|
File |
selectPackageDirectory(String componentId)
Allows entering the installation directory path for a given component from the console window.
|
File |
selectPackageFile(String componentId)
Allows entering the PEAR file path for a given component from the console window.
|
URL |
selectPackageUrl(String componentId)
Allows entering the PEAR package URL for a given component from the console window.
|
public SimplePackageSelector(PrintWriter stdOut, PrintWriter stdErr)
stdOut
- The given standard output stream writer.stdErr
- The given standard error stream writer.public SimplePackageSelector()
public File selectPackageDirectory(String componentId)
selectPackageDirectory
in interface InstallationController.PackageSelector
componentId
- The given component ID.null
, if the
entered string is empty.public File selectPackageFile(String componentId)
selectPackageFile
in interface InstallationController.PackageSelector
componentId
- The given component ID.null
, if the entered string is
empty.public URL selectPackageUrl(String componentId)
selectPackageUrl
in interface InstallationController.PackageSelector
componentId
- The given component ID.null
, if the entered
string is empty.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.