|
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.devmodules.api.J2eePlatform
public final class J2eePlatform
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 |
CLIENT_PROP_DIST_ARCHIVE
Constant for the distribution archive client property. |
static String |
LIBRARY_TYPE
Type of the library created by createLibrary(File, String). |
static String |
PROP_CLASSPATH
Classpath property |
static String |
PROP_DISPLAY_NAME
Display name property |
static String |
PROP_PLATFORM_ROOTS
Platform roots property |
static String |
TOOL_APP_CLIENT_RUNTIME
Constant for the application runtime tool. |
static String |
TOOL_EMBEDDABLE_EJB
Constant for the embedabble EJB (Java EE 6). |
static String |
TOOL_JSR109
Constant for the JSR109 tool. |
static String |
TOOL_JWSDP
Constant for the JWSDP tool. |
static String |
TOOL_KEYSTORE
Constant for the KEYSTORE tool. |
static String |
TOOL_KEYSTORE_CLIENT
Constant for the KEYSTORE_CLIENT tool. |
static String |
TOOL_PROP_CLIENT_JAR_LOCATION
Tool property constant for application client jar location. |
static String |
TOOL_PROP_JVM_OPTS
Constant for the JVM options tool property. |
static String |
TOOL_PROP_MAIN_CLASS
Constant for the main class tool property. |
static String |
TOOL_PROP_MAIN_CLASS_ARGS
Constant for the main class arguments tool property. |
static String |
TOOL_TRUSTSTORE
Constant for the TRUSTSTORE tool. |
static String |
TOOL_TRUSTSTORE_CLIENT
Constant for the TRUSTSTORE_CLIENT tool. |
static String |
TOOL_WSCOMPILE
Constant for the WSCOMPILE tool. |
static String |
TOOL_WSGEN
Constant for the WSGEN tool. |
static String |
TOOL_WSIMPORT
Constant for the WSIMPORT tool. |
static String |
TOOL_WSIT
Constant for the WSIT tool. |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Register a listener which will be notified when some of the platform's properties change. |
Library |
createLibrary(File location,
String libraryName)
Creates sharable Java library containing all libraries and sources provided by this platform. |
boolean |
equals(Object obj)
|
File[] |
getClasspathEntries()
Return classpath entries. |
File[] |
getClasspathEntries(Set<ServerLibraryDependency> libraries)
|
String |
getDisplayName()
Return platform's display name. |
File |
getDomainHome()
Returns the domain directory or null if not
specified or unknown. |
Image |
getIcon()
Return platform's icon. |
JavaPlatform |
getJavaPlatform()
Return server J2SE platform or null if the platform is unknown, not registered in the IDE. |
Lookup |
getLookup()
Lookup providing a way to find non mandatory technologies supported by the platform. |
File |
getMiddlewareHome()
Returns the middleware directory or null if not
specified or unknown. |
File[] |
getPlatformRoots()
Deprecated. use getServerHome() or getDomainHome()
or getMiddlewareHome() |
File |
getServerHome()
Returns the server installation directory or null if not
specified or unknown. |
Set |
getSupportedJavaPlatformVersions()
Return a set of J2SE platform versions this J2EE platform can run with. |
Set |
getSupportedModuleTypes()
Deprecated. use getSupportedTypes() |
Set<org.netbeans.api.j2ee.core.Profile> |
getSupportedProfiles()
Returns the set of supported profiles (terminology of Java EE 6). |
Set<org.netbeans.api.j2ee.core.Profile> |
getSupportedProfiles(J2eeModule.Type moduleType)
Returns the set of supported profiles (terminology of Java EE 6) for the given module type (one of J2eeModule.EAR,
J2eeModule.EJB, J2eeModule.WAR, J2eeModule#RAR
and J2eeModule#CAR). |
Set |
getSupportedSpecVersions()
Deprecated. use getSupportedProfiles() |
Set<String> |
getSupportedSpecVersions(Object moduleType)
Deprecated. use #getSupportedProfiles(java.lang.Object) |
Set<J2eeModule.Type> |
getSupportedTypes()
Return a list of supported module types. |
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 |
int |
hashCode()
|
boolean |
isToolSupported(String toolName)
Deprecated. getLookup() should be used to obtain tool specifics |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a listener registered previously. |
boolean |
supportsProfiling()
Is profiling supported by this J2EE platform? |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LIBRARY_TYPE
createLibrary(File, String).
public static final String PROP_DISPLAY_NAME
public static final String PROP_CLASSPATH
public static final String PROP_PLATFORM_ROOTS
public static final String TOOL_APP_CLIENT_RUNTIME
TOOL_PROP_MAIN_CLASS,
TOOL_PROP_MAIN_CLASS_ARGS, TOOL_PROP_JVM_OPTS
public static final String TOOL_JSR109
public static final String TOOL_WSCOMPILE
public static final String TOOL_EMBEDDABLE_EJB
public static final String TOOL_WSIMPORT
public static final String TOOL_WSGEN
public static final String TOOL_WSIT
public static final String TOOL_JWSDP
public static final String TOOL_KEYSTORE
public static final String TOOL_KEYSTORE_CLIENT
public static final String TOOL_TRUSTSTORE
public static final String TOOL_TRUSTSTORE_CLIENT
public static final String TOOL_PROP_MAIN_CLASS
public static final String TOOL_PROP_MAIN_CLASS_ARGS
public static final String TOOL_PROP_JVM_OPTS
public static final String TOOL_PROP_CLIENT_JAR_LOCATION
public static final String CLIENT_PROP_DIST_ARCHIVE
| Method Detail |
|---|
@NonNull public File[] getClasspathEntries()
@NonNull public File[] getClasspathEntries(Set<ServerLibraryDependency> libraries)
public File[] getToolClasspathEntries(String toolName)
toolName - tool name, for example TOOL_APP_CLIENT_RUNTIME.
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
CLIENT_PROP_DIST_ARCHIVE
toolName - tool name, for example TOOL_APP_CLIENT_RUNTIME.propertyName - tool property name, for example TOOL_PROP_MAIN_CLASS.
public boolean isToolSupported(String toolName)
getLookup() should be used to obtain tool specifics
toolName - tool name, for example TOOL_APP_CLIENT_RUNTIME.
true if platform supports tool of the given name,
false otherwise.public String getDisplayName()
public Image getIcon()
public File[] getPlatformRoots()
getServerHome() or getDomainHome()
or getMiddlewareHome()
@CheckForNull public File getServerHome()
null if not
specified or unknown.
null if not
specified or unknownJ2eePlatformImpl2.getServerHome()@CheckForNull public File getDomainHome()
null if not
specified or unknown. Many Java EE servers allows usage of multiple
server instances using single binaries. In such case this method should
return the installation/configuration directory of such instance.
null if not
specified or unknownJ2eePlatformImpl2.getDomainHome()@CheckForNull public File getMiddlewareHome()
null if not
specified or unknown. Some servers share certain binaries on higher level
with other products of the same vendor. In such case this method should
return the appropriate directory.
null if not
specified or unknownJ2eePlatformImpl2.getMiddlewareHome()public Set getSupportedSpecVersions()
getSupportedProfiles()
J2eeModule
class.
public Set<String> getSupportedSpecVersions(Object moduleType)
#getSupportedProfiles(java.lang.Object)
moduleType - one of the constants defined in
J2eeModule
@NonNull public Set<org.netbeans.api.j2ee.core.Profile> getSupportedProfiles()
Profiles supported by the server.Profile
@NonNull
public Set<org.netbeans.api.j2ee.core.Profile> getSupportedProfiles(@NonNull
J2eeModule.Type moduleType)
J2eeModule.EAR,
J2eeModule.EJB, J2eeModule.WAR, J2eeModule#RAR
and J2eeModule#CAR).
moduleType - type of the module
Profiles supported by the server.Profilepublic Set getSupportedModuleTypes()
getSupportedTypes()
J2eeModule
class.
public Set<J2eeModule.Type> getSupportedTypes()
J2eeModule.Type
class.
public Set getSupportedJavaPlatformVersions()
public boolean supportsProfiling()
public JavaPlatform getJavaPlatform()
public void addPropertyChangeListener(PropertyChangeListener l)
l - listener which should be added.public void removePropertyChangeListener(PropertyChangeListener l)
l - listener which should be removed.public String toString()
toString in class Object
public Library createLibrary(File location,
String libraryName)
throws IOException
location - sharable libraries locationlibraryName - name of the library
IOException - if the library can't be created for some reasonpublic Lookup getLookup()
getLookup in interface Lookup.Providerpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
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 | |||||||||