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
J2eePlatformImpl.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.Type.RAR and J2eeModule.Type.CAR ). |
Set<String> |
getSupportedSpecVersions()
Deprecated.
override
J2eePlatformImpl.getSupportedProfiles() and #getSupportedProfiles(Type) |
Set<String> |
getSupportedSpecVersions(Object moduleType)
Deprecated.
override
J2eePlatformImpl.getSupportedProfiles() and #getSupportedProfiles(Type) |
Set<J2eeModule.Type> |
getSupportedTypes() |
abstract File[] |
getToolClasspathEntries(String toolName)
Return classpath for the specified tool.
|
String |
getToolProperty(String toolName,
String propertyName)
Deprecated.
J2eePlatformImpl.getLookup() should be used to obtain tool specifics |
abstract boolean |
isToolSupported(String toolName)
Deprecated.
J2eePlatformImpl.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)
J2eePlatformImpl.getLibraries()
.
This default implementation return the same libraries as J2eePlatformImpl.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
.@Deprecated public abstract boolean isToolSupported(String toolName)
J2eePlatformImpl.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.@Deprecated public Set<String> getSupportedSpecVersions()
J2eePlatformImpl.getSupportedProfiles()
and #getSupportedProfiles(Type)
J2eeModule
class.@Deprecated public Set<String> getSupportedSpecVersions(Object moduleType)
J2eePlatformImpl.getSupportedProfiles()
and #getSupportedProfiles(Type)
moduleType
- one of the constants defined in
J2eeModule
public Set<org.netbeans.api.j2ee.core.Profile> getSupportedProfiles()
J2eePlatformImpl.getSupportedSpecVersions()
to profiles.Profile
public Set<org.netbeans.api.j2ee.core.Profile> getSupportedProfiles(J2eeModule.Type moduleType)
J2eeModule.EAR
, J2eeModule.EJB
,
J2eeModule.WAR
, J2eeModule.Type.RAR
and J2eeModule.Type.CAR
).
By default method converts specification version returned by
J2eePlatformImpl.getSupportedSpecVersions(java.lang.Object)
to profiles.moduleType
- type of the moduleProfile
@Deprecated public Set getSupportedModuleTypes()
J2eePlatformImpl.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.@Deprecated public String getToolProperty(String toolName, String propertyName)
J2eePlatformImpl.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()