org.apache.cocoon.forms.formmodel.library
Class LibraryManagerImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.forms.formmodel.library.LibraryManagerImpl
All Implemented Interfaces:
Disposable, Component, Configurable, LogEnabled, Serviceable, ThreadSafe, LibraryManager

public class LibraryManagerImpl
extends AbstractLogEnabled
implements LibraryManager, Serviceable, Configurable, Disposable, ThreadSafe, Component

Version:
$Id: LibraryManagerImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.formmodel.library.LibraryManager
ROLE
 
Constructor Summary
LibraryManagerImpl()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void dispose()
           
 Library get(String sourceURI)
          Get the cached instance of the library loaded from the specified source URI.
 Library get(String sourceURI, String baseURI)
          Get the cached instance of the library loaded from the specified source URI, resolved relative to the base URI.
 Library load(String sourceURI)
          Loads (and caches) a library from specified source URI.
 Library load(String sourceURI, String baseURI)
          Loads (and caches) a library from specified source URI, resolved relative to the base URI.
 Library newLibrary()
          Create new instance of the Library.
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryManagerImpl

public LibraryManagerImpl()
Method Detail

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

get

public Library get(String sourceURI)
            throws LibraryException
Description copied from interface: LibraryManager
Get the cached instance of the library loaded from the specified source URI.

Specified by:
get in interface LibraryManager
Parameters:
sourceURI - URI of the library source.
Returns:
Cached instance of the library, or null if it was not loaded.
Throws:
LibraryException

get

public Library get(String sourceURI,
                   String baseURI)
            throws LibraryException
Description copied from interface: LibraryManager
Get the cached instance of the library loaded from the specified source URI, resolved relative to the base URI.

Specified by:
get in interface LibraryManager
Parameters:
sourceURI - Relative URI of the library source.
baseURI - Base URI of the library source.
Returns:
Cached instance of the library, or null if it was not loaded.
Throws:
LibraryException

load

public Library load(String sourceURI)
             throws LibraryException
Description copied from interface: LibraryManager
Loads (and caches) a library from specified source URI.

Specified by:
load in interface LibraryManager
Parameters:
sourceURI - URI of the library source.
Returns:
Library loaded from the source URI.
Throws:
LibraryException

load

public Library load(String sourceURI,
                    String baseURI)
             throws LibraryException
Description copied from interface: LibraryManager
Loads (and caches) a library from specified source URI, resolved relative to the base URI.

Specified by:
load in interface LibraryManager
Parameters:
sourceURI - Relative URI of the library source.
baseURI - Base URI of the library source.
Returns:
Library loaded from the source URI.
Throws:
LibraryException

newLibrary

public Library newLibrary()
Description copied from interface: LibraryManager
Create new instance of the Library.

Specified by:
newLibrary in interface LibraryManager
Returns:
new library instance


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.