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:
org.netbeans.spi.project.libraries.LibraryTypeProvider, org.openide.util.Lookup.Provider

public final class J2eeLibraryTypeProvider
extends Object
implements org.netbeans.spi.project.libraries.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
 org.netbeans.spi.project.libraries.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.
 org.openide.util.Lookup getLookup()
          Returns empty lookup.
 String[] getSupportedVolumeTypes()
          Return supported volume types: classpath, javadoc, src.
 void libraryCreated(org.netbeans.spi.project.libraries.LibraryImplementation libraryImpl)
          Does nothing now.
 void libraryDeleted(org.netbeans.spi.project.libraries.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 org.netbeans.spi.project.libraries.LibraryTypeProvider
Returns:
String the display name

getLibraryType

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

Specified by:
getLibraryType in interface org.netbeans.spi.project.libraries.LibraryTypeProvider
Returns:
the j2ee library type identifier.

getSupportedVolumeTypes

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

Specified by:
getSupportedVolumeTypes in interface org.netbeans.spi.project.libraries.LibraryTypeProvider
Returns:
support volume types.

createLibrary

public org.netbeans.spi.project.libraries.LibraryImplementation createLibrary()
Creates a new implementation of j2ee library type.

Specified by:
createLibrary in interface org.netbeans.spi.project.libraries.LibraryTypeProvider
Returns:
the created library model, never null

libraryDeleted

public void libraryDeleted(org.netbeans.spi.project.libraries.LibraryImplementation libraryImpl)
Does nothing now.

Specified by:
libraryDeleted in interface org.netbeans.spi.project.libraries.LibraryTypeProvider

libraryCreated

public void libraryCreated(org.netbeans.spi.project.libraries.LibraryImplementation libraryImpl)
Does nothing now.

Specified by:
libraryCreated in interface org.netbeans.spi.project.libraries.LibraryTypeProvider

getCustomizer

public Customizer getCustomizer(String volumeType)
Currently returns null.

Specified by:
getCustomizer in interface org.netbeans.spi.project.libraries.LibraryTypeProvider

getLookup

public org.openide.util.Lookup getLookup()
Returns empty lookup.

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

 

Built on March 27 2006.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.