public class ForwardingJavaPlatform extends JavaPlatform
JavaPlatform
forwarding calls to a delegate.Modifier and Type | Field and Description |
---|---|
protected JavaPlatform |
delegate |
PROP_DISPLAY_NAME, PROP_JAVADOC_FOLDER, PROP_SOURCE_FOLDER, PROP_SYSTEM_PROPERTIES
Constructor and Description |
---|
ForwardingJavaPlatform(JavaPlatform delegate) |
Modifier and Type | Method and Description |
---|---|
FileObject |
findTool(String toolName)
Gets the platform tool executable.
|
ClassPath |
getBootstrapLibraries()
Returns a ClassPath, which represents bootstrap libraries for the
runtime environment.
|
String |
getDisplayName() |
Collection<FileObject> |
getInstallFolders()
Retrieves a collection of
FileObject s of one or more folders
where the Platform is installed. |
List<URL> |
getJavadocFolders()
Returns the locations of the Javadoc for this platform
or empty collection if the location is not set or invalid
|
Map<String,String> |
getProperties()
Gets some ad-hoc properties defined for this platform.
|
ClassPath |
getSourceFolders()
Returns the locations of the source of platform
or empty collection when the location is not set or is invalid
|
Specification |
getSpecification()
Returns specification of the Java SDK
|
ClassPath |
getStandardLibraries()
Returns libraries recognized by default by the platform.
|
String |
getVendor()
Returns the vendor of the Java SDK
|
addPropertyChangeListener, firePropertyChange, getDefault, getSystemProperties, isValid, removePropertyChangeListener, setSystemProperties
protected final JavaPlatform delegate
public ForwardingJavaPlatform(@NonNull JavaPlatform delegate)
public String getDisplayName()
getDisplayName
in class JavaPlatform
public Map<String,String> getProperties()
JavaPlatform
Implementations are however advised to include the key
platform.ant.name
if they wish to be used in Ant builds;
the value default_platform
is conventionally associated
with the default platform.
getProperties
in class JavaPlatform
public ClassPath getBootstrapLibraries()
JavaPlatform
getBootstrapLibraries
in class JavaPlatform
public ClassPath getStandardLibraries()
JavaPlatform
getStandardLibraries
in class JavaPlatform
public String getVendor()
JavaPlatform
getVendor
in class JavaPlatform
public Specification getSpecification()
JavaPlatform
getSpecification
in class JavaPlatform
public Collection<FileObject> getInstallFolders()
JavaPlatform
FileObject
s of one or more folders
where the Platform is installed. Typically it returns one folder, but
in some cases there can be more of them.getInstallFolders
in class JavaPlatform
public FileObject findTool(String toolName)
JavaPlatform
findTool
in class JavaPlatform
toolName
- the tool platform independent tool name.public ClassPath getSourceFolders()
JavaPlatform
getSourceFolders
in class JavaPlatform
public List<URL> getJavadocFolders()
JavaPlatform
getJavadocFolders
in class JavaPlatform