org.apache.cocoon.forms.binding.library
Class LibraryManagerImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.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 $
| Fields inherited from interface org.apache.cocoon.forms.binding.library.LibraryManager |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
protected static final String PREFIX
- See Also:
- Constant Field Values
LibraryManagerImpl
public LibraryManagerImpl()
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.