org.apache.cocoon.forms.binding
Class JXPathBindingManager

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

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

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

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

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
protected  SimpleServiceSelector bindingBuilderSelector
           
protected  DatatypeManager datatypeManager
           
protected  LibraryManagerImpl libraryManager
           
protected  ServiceManager manager
           
 
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(Element bindingElement)
          Creates a binding from the XML config that is supplied as a DOM tree.
 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()
           
protected  Logger getMyLogger()
          Java 1.3 logger access method.
 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
 

Field Detail

manager

protected ServiceManager manager

datatypeManager

protected DatatypeManager datatypeManager

bindingBuilderSelector

protected SimpleServiceSelector bindingBuilderSelector

libraryManager

protected LibraryManagerImpl libraryManager
Constructor Detail

JXPathBindingManager

public JXPathBindingManager()
Method Detail

getMyLogger

protected Logger getMyLogger()
Java 1.3 logger access method.
Access to {#getLogger} from inner class on Java 1.3 causes NoSuchMethod error.


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

createBinding

public Binding createBinding(Element bindingElement)
                      throws BindingException
Description copied from interface: BindingManager
Creates a binding from the XML config that is supplied as a DOM tree.

The specified element must be a fb:context element.

The binding will not 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-2010 The Apache Software Foundation. All Rights Reserved.