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

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

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

Version:
$Id: LibraryManagerImpl.java 451891 2006-10-02 06:36:48Z vgritsenko $

Field Summary
protected static String PREFIX
           
 
Fields inherited from interface org.apache.cocoon.forms.binding.library.LibraryManager
ROLE
 
Constructor Summary
LibraryManagerImpl()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void debug(String msg)
           
 void dispose()
           
 boolean get(String librarysource)
          Get the cached instance of the library loaded from the specified source URI.
 boolean get(String librarysource, String relative)
          Get the cached instance of the library loaded from the specified source URI, resolved relative to the base URI.
 void initialize()
           
 Library load(String librarysource)
          Loads (and caches) a library from specified source URI.
 Library load(String librarysource, String relative)
          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)
           
 void setBindingManager(JXPathBindingManager bindingManager)
           
 
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
 

Field Detail

PREFIX

protected static final String PREFIX
See Also:
Constant Field Values
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

setBindingManager

public void setBindingManager(JXPathBindingManager bindingManager)

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface Initializable
Throws:
Exception

get

public boolean get(String librarysource)
            throws Exception
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:
librarysource - URI of the library source.
Returns:
Cached instance of the library, or null if it was not loaded.
Throws:
Exception

get

public boolean get(String librarysource,
                   String relative)
            throws Exception
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:
librarysource - Relative URI of the library source.
relative - Base URI of the library source.
Returns:
Cached instance of the library, or null if it was not loaded.
Throws:
Exception

load

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

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

load

public Library load(String librarysource,
                    String relative)
             throws Exception
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:
librarysource - Relative URI of the library source.
relative - Base URI of the library source.
Returns:
Library loaded from the source URI.
Throws:
Exception

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

dispose

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

debug

public void debug(String msg)


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