|
org.netbeans.modules.j2eeserver/4 1.89.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl
public abstract class J2eePlatformImpl
Base SPI interface for J2eePlatform. The J2eePlatform describes the target environment J2EE applications are build against and subsequently deployed to. Each server instance defines its own J2EE platform.
| Field Summary | |
|---|---|
static String |
PROP_DISPLAY_NAME
Display name property |
static String |
PROP_LIBRARIES
Libraries property |
static String |
PROP_SERVER_LIBRARIES
|
| Constructor Summary | |
|---|---|
J2eePlatformImpl()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_DISPLAY_NAME
public static final String PROP_LIBRARIES
public static final String PROP_SERVER_LIBRARIES
| Constructor Detail |
|---|
public J2eePlatformImpl()
| Method Detail |
|---|
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 required
public 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 specifics
J2eePlatform.
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()
getSupportedProfiles() and #getSupportedProfiles(java.lang.Object)
J2eeModule
class.
public Set<String> getSupportedSpecVersions(Object moduleType)
getSupportedProfiles() and #getSupportedProfiles(java.lang.Object)
moduleType - one of the constants defined in
J2eeModule
public 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 module
Profilepublic 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 specifics
The 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()
|
org.netbeans.modules.j2eeserver/4 1.89.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||