org.netbeans.modules.j2eeserver/4 1.55.0 1

org.netbeans.modules.j2ee.deployment.common.api
Class J2eeLibraryTypeProvider

java.lang.Object
  extended by org.netbeans.modules.j2ee.deployment.common.api.J2eeLibraryTypeProvider
All Implemented Interfaces:
LibraryTypeProvider, Lookup.Provider

public final class J2eeLibraryTypeProvider
extends Object
implements LibraryTypeProvider

The J2eeLibraryTypeProvider defines a j2ee library type and is responsible for creating new libraries of this type.

Since:
1.5

Field Summary
static String LIBRARY_TYPE
          J2ee library type
static String VOLUME_TYPE_CLASSPATH
          Classpath volume type
static String VOLUME_TYPE_JAVADOC
          Javadoc volume type
static String VOLUME_TYPE_SRC
          Source volume type
static String[] VOLUME_TYPES
           
 
Constructor Summary
J2eeLibraryTypeProvider()
          Creates a new instance of J2eeLibraryTypeProvider
 
Method Summary
 LibraryImplementation createLibrary()
          Creates a new implementation of j2ee library type.
 Customizer getCustomizer(String volumeType)
          Currently returns null.
 String getDisplayName()
          Returns the UI name of the LibraryType.
 String getLibraryType()
          Get a j2ee library type identifier.
 Lookup getLookup()
          Returns empty lookup.
 String[] getSupportedVolumeTypes()
          Return supported volume types: classpath, javadoc, src.
 void libraryCreated(LibraryImplementation libraryImpl)
          Does nothing now.
 void libraryDeleted(LibraryImplementation libraryImpl)
          Does nothing now.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIBRARY_TYPE

public static final String LIBRARY_TYPE
J2ee library type

See Also:
Constant Field Values

VOLUME_TYPE_CLASSPATH

public static final String VOLUME_TYPE_CLASSPATH
Classpath volume type

See Also:
Constant Field Values

VOLUME_TYPE_SRC

public static final String VOLUME_TYPE_SRC
Source volume type

See Also:
Constant Field Values

VOLUME_TYPE_JAVADOC

public static final String VOLUME_TYPE_JAVADOC
Javadoc volume type

See Also:
Constant Field Values

VOLUME_TYPES

public static final String[] VOLUME_TYPES
Constructor Detail

J2eeLibraryTypeProvider

public J2eeLibraryTypeProvider()
Creates a new instance of J2eeLibraryTypeProvider

Method Detail

getDisplayName

public String getDisplayName()
Returns the UI name of the LibraryType. This name is used in the UI while the libraryType is used as a system identifier.

Specified by:
getDisplayName in interface LibraryTypeProvider
Returns:
String the display name

getLibraryType

public String getLibraryType()
Get a j2ee library type identifier.

Specified by:
getLibraryType in interface LibraryTypeProvider
Returns:
the j2ee library type identifier.

getSupportedVolumeTypes

public String[] getSupportedVolumeTypes()
Return supported volume types: classpath, javadoc, src.

Specified by:
getSupportedVolumeTypes in interface LibraryTypeProvider
Returns:
support volume types.

createLibrary

public LibraryImplementation createLibrary()
Creates a new implementation of j2ee library type.

Specified by:
createLibrary in interface LibraryTypeProvider
Returns:
the created library model, never null

libraryDeleted

public void libraryDeleted(LibraryImplementation libraryImpl)
Does nothing now.

Specified by:
libraryDeleted in interface LibraryTypeProvider

libraryCreated

public void libraryCreated(LibraryImplementation libraryImpl)
Does nothing now.

Specified by:
libraryCreated in interface LibraryTypeProvider

getCustomizer

public Customizer getCustomizer(String volumeType)
Currently returns null.

Specified by:
getCustomizer in interface LibraryTypeProvider

getLookup

public Lookup getLookup()
Returns empty lookup.

Specified by:
getLookup in interface Lookup.Provider
Returns:
empty lookup.

org.netbeans.modules.j2eeserver/4 1.55.0 1

Built on November 20 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.