org.netbeans.modules.j2eeserver/4 1.89.0 1

org.netbeans.modules.j2ee.deployment.plugins.spi.config
Interface ServerLibraryConfiguration


public interface ServerLibraryConfiguration

The interface defining the methods that can handle the server libraries in scope of enterprise module.

This interface is typically looked up in ModuleConfiguration's lookup.

Since:
1.68

Method Summary
 void addLibraryChangeListener(ChangeListener listener)
           
 void configureLibrary(ServerLibraryDependency library)
          Configure the library (dependency) the enterprise module needs in order to work properly.
 Set<ServerLibraryDependency> getLibraries()
          Returns the server library dependencies the enterprise module needs to work properly.
 void removeLibraryChangeListener(ChangeListener listener)
           
 

Method Detail

configureLibrary

void configureLibrary(@NonNull
                      ServerLibraryDependency library)
                      throws ConfigurationException
Configure the library (dependency) the enterprise module needs in order to work properly.

Once library is configured it should be present in the result of the #getRequiredLibraries() call.

Parameters:
library - the library the enterprise module needs in order to work properly
Throws:
ConfigurationException - if there was a problem writing configuration

getLibraries

@NonNull
Set<ServerLibraryDependency> getLibraries()
                                          throws ConfigurationException
Returns the server library dependencies the enterprise module needs to work properly.

Returns:
the server library dependencies
Throws:
ConfigurationException - if there was a problem reading configuration

addLibraryChangeListener

void addLibraryChangeListener(@NonNull
                              ChangeListener listener)

removeLibraryChangeListener

void removeLibraryChangeListener(@NonNull
                                 ChangeListener listener)

org.netbeans.modules.j2eeserver/4 1.89.0 1

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