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.java 451891 2006-10-02 06:36:48Z vgritsenko $

Field Summary
static String ROLE
           
 
Method Summary
 boolean get(String sourceURI)
          Get the cached instance of the library loaded from the specified source URI.
 boolean 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

public static final String ROLE
Method Detail

newLibrary

public Library newLibrary()
Create new instance of the Library.

Returns:
new library instance

load

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

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

load

public Library load(String sourceURI,
                    String baseURI)
             throws Exception
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:
Exception

get

public boolean get(String sourceURI)
            throws Exception
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:
Exception

get

public boolean get(String sourceURI,
                   String baseURI)
            throws Exception
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:
Exception


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