org.geotools.xml.impl
Class BindingLoader

Object
  extended by BindingLoader

public class BindingLoader
extends Object


Constructor Summary
BindingLoader(Map bindings)
           
 
Method Summary
protected  ComponentAdapter getBinding(QName type)
          Returns the component adapter for a binding with the specified name.
 Binding loadBinding(QName qName, Class bindingClass, MutablePicoContainer context)
          Loads a binding with a specifc class into a context.
 Binding loadBinding(QName qName, MutablePicoContainer context)
          Loads a binding with a specifc QName into a context.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingLoader

public BindingLoader(Map bindings)
Method Detail

loadBinding

public Binding loadBinding(QName qName,
                           MutablePicoContainer context)
Loads a binding with a specifc QName into a context.

Parameters:
qName - The qualified name of the type of the binding object.
context - The context which is to contain the binding.
Returns:
The binding object of the associated type, otherwise null if no such binding could be created.

loadBinding

public Binding loadBinding(QName qName,
                           Class bindingClass,
                           MutablePicoContainer context)
Loads a binding with a specifc class into a context.

Parameters:
bindingClass - The class of the binding.
context - The context which is to contain the binding.
Returns:
The binding object of the associated type, otherwise null if no such binding could be created.

getBinding

protected ComponentAdapter getBinding(QName type)
Returns the component adapter for a binding with the specified name.

Parameters:
type - The qualified name of the type of the binding.
Returns:
The binding class, or null if no such class exists.


Copyright © 1996-2009 Geotools. All Rights Reserved.