org.netbeans.modules.j2eeserver/4 1.89.0 1

org.netbeans.modules.j2ee.deployment.plugins.spi
Class J2eePlatformImpl2

java.lang.Object
  extended by org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl
      extended by org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl2

public abstract class J2eePlatformImpl2
extends J2eePlatformImpl

SPI extending the original J2eePlatformImpl adding methods to handle platform directories in a cleaner way.

Since:
1.72
See Also:
J2eePlatformImpl

Field Summary
 
Fields inherited from class org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl
PROP_DISPLAY_NAME, PROP_LIBRARIES, PROP_SERVER_LIBRARIES
 
Constructor Summary
J2eePlatformImpl2()
           
 
Method Summary
abstract  File getDomainHome()
          Returns the domain directory or null if not specified or unknown.
abstract  File getMiddlewareHome()
          Returns the middleware directory or null if not specified or unknown.
abstract  File getServerHome()
          Returns the server installation directory or null if not specified or unknown.
 
Methods inherited from class org.netbeans.modules.j2ee.deployment.plugins.spi.J2eePlatformImpl
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getJavaPlatform, getLibraries, getLibraries, getLookup, getPlatformRoots, getSupportedJavaPlatformVersions, getSupportedModuleTypes, getSupportedProfiles, getSupportedProfiles, getSupportedSpecVersions, getSupportedSpecVersions, getSupportedTypes, getToolClasspathEntries, getToolProperty, isToolSupported, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2eePlatformImpl2

public J2eePlatformImpl2()
Method Detail

getServerHome

@CheckForNull
public abstract File getServerHome()
Returns the server installation directory or null if not specified or unknown.

Returns:
the server installation directory or null if not specified or unknown

getDomainHome

@CheckForNull
public abstract File getDomainHome()
Returns the domain directory or 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.

Returns:
the domain directory or null if not specified or unknown

getMiddlewareHome

@CheckForNull
public abstract File getMiddlewareHome()
Returns the middleware directory or 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.

Returns:
the middleware directory or null if not specified or unknown

org.netbeans.modules.j2eeserver/4 1.89.0 1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.