org.apache.cocoon.forms.binding
Class JXPathBindingManager

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.forms.binding.JXPathBindingManager
All Implemented Interfaces:
BindingManager, Configurable, Contextualizable, Disposable, Initializable, LogEnabled, Serviceable, ThreadSafe

public class JXPathBindingManager
extends AbstractLogEnabled
implements BindingManager, Contextualizable, Serviceable, Disposable, Initializable, Configurable, ThreadSafe

JXPathBindingManager provides an implementation of BindingManagerby usage of the JXPath package .

Version:
$Id: JXPathBindingManager.java 292615 2005-09-30 03:40:16Z antonio $

Nested Class Summary
 class JXPathBindingManager.Assistant
          Assistant Inner class discloses enough features to the created childBindings to recursively This patterns was chosen to prevent Inversion Of Control between this factory and its builder classes (that could be provided by third parties.)
 
Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.binding.BindingManager
NAMESPACE, ROLE
 
Constructor Summary
JXPathBindingManager()
           
 
Method Summary
 void configure(Configuration configuration)
           
 void contextualize(Context context)
           
 Binding createBinding(Source source)
          Creates a binding from the XML config found at source parameter.
 Binding createBinding(String bindingURI)
          Creates a binding from the XML config found at bindingURI parameter.
 void dispose()
           
 JXPathBindingManager.Assistant getBuilderAssistant()
           
 void initialize()
           
 void service(ServiceManager manager)
           
 
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

JXPathBindingManager

public JXPathBindingManager()
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

service

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

configure

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

initialize

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

createBinding

public Binding createBinding(Source source)
                      throws BindingException
Description copied from interface: BindingManager
Creates a binding from the XML config found at source parameter. The binding will be cached.

Specified by:
createBinding in interface BindingManager
Throws:
BindingException

createBinding

public Binding createBinding(String bindingURI)
                      throws BindingException
Description copied from interface: BindingManager
Creates a binding from the XML config found at bindingURI parameter. The binding will be cached.

Specified by:
createBinding in interface BindingManager
Throws:
BindingException

getBuilderAssistant

public JXPathBindingManager.Assistant getBuilderAssistant()

dispose

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


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.