org.gvsig.tools.library
Class AbstractLibrariesInitializer

java.lang.Object
  extended by org.gvsig.tools.library.AbstractLibrariesInitializer
All Implemented Interfaces:
LibrariesInitializer, Library.TYPE
Direct Known Subclasses:
DefaultLibrariesInitializer

public abstract class AbstractLibrariesInitializer
extends Object
implements LibrariesInitializer, Library.TYPE

Base implementation of an LibrariesInitializer with the initialization of Libraries already implemented, delegating on child classes the finding of available Library objects.

This class is NOT thread safe.

Author:
Cèsar Ordiñana

Field Summary
 
Fields inherited from interface org.gvsig.tools.library.Library.TYPE
API, IMPL, SERVICE
 
Constructor Summary
AbstractLibrariesInitializer()
           
AbstractLibrariesInitializer(ClassLoader classLoader)
           
AbstractLibrariesInitializer(ClassLoader[] classLoaders)
           
 
Method Summary
protected abstract  Set findLibraries(Class libraryClass, ClassLoader classLoader)
           
 void fullInitialize()
          Initializes and post-initializes all available Library objects.
 void fullInitialize(boolean ignoreerrors)
          Initializes and post-initializes all available Library objects.
 List getLibraries()
           
 void initialize()
          Initializes all available Library objects.
 void initialize(boolean ignoreerrors)
          Initializes all available Library objects.
 void postInitialize()
          Post-initializes all available Library objects.
 void postInitialize(boolean ignoreerrors)
          Post-initializes all available Library objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLibrariesInitializer

public AbstractLibrariesInitializer()

AbstractLibrariesInitializer

public AbstractLibrariesInitializer(ClassLoader classLoader)

AbstractLibrariesInitializer

public AbstractLibrariesInitializer(ClassLoader[] classLoaders)
Method Detail

initialize

public void initialize()
Description copied from interface: LibrariesInitializer
Initializes all available Library objects. The initialization process will stop if any exception is thrown by any of the libraries.

Specified by:
initialize in interface LibrariesInitializer

initialize

public void initialize(boolean ignoreerrors)
Description copied from interface: LibrariesInitializer
Initializes all available Library objects. The initialization process will stop or not if any exception is thrown by any of the libraries depending on the ignoreerrors parameter.

Specified by:
initialize in interface LibrariesInitializer
Parameters:
ignoreerrors - if library initialization errors will stop de process

postInitialize

public void postInitialize()
Description copied from interface: LibrariesInitializer
Post-initializes all available Library objects. The initialization process will stop if any exception is thrown by any of the libraries.

Specified by:
postInitialize in interface LibrariesInitializer

postInitialize

public void postInitialize(boolean ignoreerrors)
Description copied from interface: LibrariesInitializer
Post-initializes all available Library objects. The initialization process will stop or not if any exception is thrown by any of the libraries depending on the ignoreerrors parameter.

Specified by:
postInitialize in interface LibrariesInitializer
Parameters:
ignoreerrors - if library initialization errors will stop de process

fullInitialize

public void fullInitialize()
Description copied from interface: LibrariesInitializer
Initializes and post-initializes all available Library objects. The initialization process will stop if any exception is thrown by any of the libraries.

Specified by:
fullInitialize in interface LibrariesInitializer

fullInitialize

public void fullInitialize(boolean ignoreerrors)
Description copied from interface: LibrariesInitializer
Initializes and post-initializes all available Library objects. The initialization process will stop or not if any exception is thrown by any of the libraries depending on the ignoreerrors parameter.

Specified by:
fullInitialize in interface LibrariesInitializer
Parameters:
ignoreerrors - if library initialization errors will stop de process

getLibraries

public List getLibraries()

findLibraries

protected abstract Set findLibraries(Class libraryClass,
                                     ClassLoader classLoader)


Copyright © 2004-2011 gvSIG. All Rights Reserved.