public abstract class J2eePlatformImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_DISPLAY_NAME
Display name property
|
static String |
PROP_LIBRARIES
Libraries property
|
static String |
PROP_SERVER_LIBRARIES |
| Constructor and Description |
|---|
J2eePlatformImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Register a listener which will be notified when some of the platform's properties
change.
|
void |
firePropertyChange(String propName,
Object oldValue,
Object newValue)
Fire PropertyChange to all registered PropertyChangeListeners.
|
abstract String |
getDisplayName()
Return platform's display name.
|
abstract Image |
getIcon()
Return an icon describing the platform.
|
abstract JavaPlatform |
getJavaPlatform()
Return server J2SE platform or null if the platform is unknown, not
registered in the IDE.
|
abstract LibraryImplementation[] |
getLibraries()
Return platform's libraries.
|
LibraryImplementation[] |
getLibraries(Set<ServerLibraryDependency> libraries)
Return platform's libraries including the libraries required by passed
dependencies.
|
Lookup |
getLookup()
Lookup providing a way to find non mandatory technologies supported
by the platform.
|
abstract File[] |
getPlatformRoots()
Return platform's root directories.
|
abstract Set |
getSupportedJavaPlatformVersions()
Return a set of J2SE platform versions this J2EE platform can run with.
|
Set |
getSupportedModuleTypes()
Deprecated.
override
getSupportedTypes() |
Set<org.netbeans.api.j2ee.core.Profile> |
getSupportedProfiles()
Returns a set of supported profiles.
|
Set<org.netbeans.api.j2ee.core.Profile> |
getSupportedProfiles(J2eeModule.Type moduleType)
Returns a set of supported profiles for the given module type
(one of
J2eeModule.EAR, J2eeModule.EJB,
J2eeModule.WAR, J2eeModule#RAR and J2eeModule#CAR). |
Set<String> |
getSupportedSpecVersions()
Deprecated.
override
getSupportedProfiles() and #getSupportedProfiles(java.lang.Object) |
Set<String> |
getSupportedSpecVersions(Object moduleType)
Deprecated.
override
getSupportedProfiles() and #getSupportedProfiles(java.lang.Object) |
Set<J2eeModule.Type> |
getSupportedTypes() |
abstract File[] |
getToolClasspathEntries(String toolName)
Return classpath for the specified tool.
|
String |
getToolProperty(String toolName,
String propertyName)
Deprecated.
getLookup() should be used to obtain tool specifics |
abstract boolean |
isToolSupported(String toolName)
Deprecated.
getLookup() should be used to obtain tool specifics |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a listener registered previously.
|
public static final String PROP_DISPLAY_NAME
public static final String PROP_LIBRARIES
public static final String PROP_SERVER_LIBRARIES
public abstract LibraryImplementation[] getLibraries()
public LibraryImplementation[] getLibraries(Set<ServerLibraryDependency> libraries)
getLibraries().
This default implementation return the same libraries as getLibraries().
It should be overridden to handle passed dependencies as well. It is
also implementors responsibility to return libraries in correct order
in which these will be used on classpath.
libraries - the dependencies requiredpublic abstract String getDisplayName()
public abstract Image getIcon()
public abstract File[] getPlatformRoots()
public abstract File[] getToolClasspathEntries(String toolName)
J2eePlatform.toolName - tool name, for example J2eePlatform.TOOL_APP_CLIENT_RUNTIME.public abstract boolean isToolSupported(String toolName)
getLookup() should be used to obtain tool specificsJ2eePlatform.toolName - tool name, for example J2eePlatform.TOOL_APP_CLIENT_RUNTIME
.true if platform supports tool of the given name,
false otherwise.public Set<String> getSupportedSpecVersions()
J2eeModule
class.public Set<String> getSupportedSpecVersions(Object moduleType)
moduleType - one of the constants defined in
J2eeModulepublic Set<org.netbeans.api.j2ee.core.Profile> getSupportedProfiles()
getSupportedSpecVersions()
to profiles.Profilepublic Set<org.netbeans.api.j2ee.core.Profile> getSupportedProfiles(J2eeModule.Type moduleType)
J2eeModule.EAR, J2eeModule.EJB,
J2eeModule.WAR, J2eeModule#RAR and J2eeModule#CAR).
By default method converts specification version returned by
getSupportedSpecVersions(java.lang.Object) to profiles.moduleType - type of the moduleProfilepublic Set getSupportedModuleTypes()
getSupportedTypes()J2eeModule
class.public Set<J2eeModule.Type> getSupportedTypes()
public abstract Set getSupportedJavaPlatformVersions()
public abstract JavaPlatform getJavaPlatform()
public final void addPropertyChangeListener(PropertyChangeListener l)
l - listener which should be added.public final void removePropertyChangeListener(PropertyChangeListener l)
l - listener which should be removed.public final void firePropertyChange(String propName, Object oldValue, Object newValue)
propName - property name.oldValue - old value.newValue - new value.public String getToolProperty(String toolName, String propertyName)
getLookup() should be used to obtain tool specificsThe property value uses Ant property format and therefore may contain references to another properties defined either by the client of this API or by the tool itself.
The properties the client may be requited to define are as follows
J2eePlatform.CLIENT_PROP_DIST_ARCHIVE
toolName - tool name, for example J2eePlatform.TOOL_APP_CLIENT_RUNTIME.propertyName - tool property name, for example J2eePlatform.TOOL_PROP_MAIN_CLASS.public Lookup getLookup()
Built on June 17 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.