org.apache.cocoon.forms.binding.library
Interface LibraryManager

All Known Implementing Classes:
LibraryManagerImpl

public interface LibraryManager

The work interface for the LibraryManager, the class that manages all used form binding library definitions so they can be shared between forms.

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

Field Summary
static String ROLE
           
 
Method Summary
 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.
 

Field Detail

ROLE

static final String ROLE
Method Detail

newLibrary

Library newLibrary()
Create new instance of the Library.

Returns:
new library instance

load

Library load(String sourceURI)
             throws LibraryException
Loads (and caches) a library from specified source URI.

Parameters:
sourceURI - URI of the library source.
Returns:
Library loaded from the source URI.
Throws:
LibraryException

load

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

Parameters:
sourceURI - Relative URI of the library source.
baseURI - Base URI of the library source.
Returns:
Library loaded from the source URI.
Throws:
LibraryException

get

Library get(String sourceURI)
            throws LibraryException
Get the cached instance of the library loaded from the specified source URI.

Parameters:
sourceURI - URI of the library source.
Returns:
Cached instance of the library, or null if it was not loaded.
Throws:
LibraryException

get

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

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


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