net.bioclipse.xws.binding
Class BindingManager

java.lang.Object
  extended by net.bioclipse.xws.binding.BindingManager

public class BindingManager
extends java.lang.Object


Constructor Summary
BindingManager()
           
 
Method Summary
static java.io.File[] getBindingFiles(IFunction function)
          Returns an array of directories.
static java.io.File[] getBindingFiles(IFunction function, BindingDefinitions definitions)
          Returns an array of directories.
static IIoFactory getIoFactory(IFunction function)
          Loads a pre-existing binding to the classpath and returns a new instance of its IIoFactory.
static IIoFactory getIoFactory(IFunction function, BindingDefinitions definitions)
          Loads a pre-existing binding to the classpath and returns a new instance of its IIoFactory.
static IIoFactory getIoFactory(IoSchemata ioschemata)
          Creates and loads a binding to the classpath and returns a new instance of its IIoFactory.
static IIoFactory getIoFactory(IoSchemata ioschemata, BindingDefinitions definitions)
          Creates and loads a binding to the classpath and returns a new instance of its IIoFactory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingManager

public BindingManager()
Method Detail

getIoFactory

public static IIoFactory getIoFactory(IFunction function,
                                      BindingDefinitions definitions)
                               throws net.bioclipse.xws.binding.exceptions.XwsBindingException
Loads a pre-existing binding to the classpath and returns a new instance of its IIoFactory.

Parameters:
function - The XMPP Service function the binding belongs to.
definitions - The binding definitions.
Returns:
A new instance of the pre-existing bindings IIoFactory.
Throws:
net.bioclipse.xws.binding.exceptions.XwsBindingException

getIoFactory

public static IIoFactory getIoFactory(IFunction function)
                               throws net.bioclipse.xws.binding.exceptions.XwsBindingException
Loads a pre-existing binding to the classpath and returns a new instance of its IIoFactory. The static BindingDefinitions object must be defined.

Parameters:
function - The XMPP Service function the binding belongs to.
Returns:
A new instance of the pre-existing bindings IIoFactory.
Throws:
net.bioclipse.xws.binding.exceptions.XwsBindingException

getBindingFiles

public static java.io.File[] getBindingFiles(IFunction function)
                                      throws net.bioclipse.xws.binding.exceptions.XwsBindingException
Returns an array of directories. Each directory represents a binding for the specified XMPP Service function. The static BindingDefinitions object must be defined.

Parameters:
function - The XMPP Service function the binding belongs to.
Returns:
An array of binding directories.
Throws:
net.bioclipse.xws.binding.exceptions.XwsBindingException

getBindingFiles

public static java.io.File[] getBindingFiles(IFunction function,
                                             BindingDefinitions definitions)
Returns an array of directories. Each directory represents a binding for the specified XMPP Service function.

Parameters:
function - The XMPP Service function the binding belongs to.
definitions - The binding definitions.
Returns:
An array of binding directories.

getIoFactory

public static IIoFactory getIoFactory(IoSchemata ioschemata)
                               throws net.bioclipse.xws.binding.exceptions.XwsBindingException
Creates and loads a binding to the classpath and returns a new instance of its IIoFactory. The static BindingDefinitions object must be defined.

Parameters:
ioschemata - The input/output XML Schemata of the XMPP Service function.
Returns:
A new instance of the IIoFactory of the newly created binding.
Throws:
net.bioclipse.xws.binding.exceptions.XwsBindingException

getIoFactory

public static IIoFactory getIoFactory(IoSchemata ioschemata,
                                      BindingDefinitions definitions)
                               throws net.bioclipse.xws.binding.exceptions.XwsBindingException
Creates and loads a binding to the classpath and returns a new instance of its IIoFactory.

Parameters:
ioschemata - The input/output XML Schemata of the XMPP Service function.
definitions - The binding definitions.
Returns:
A new instance of the IIoFactory of the newly created binding.
Throws:
net.bioclipse.xws.binding.exceptions.XwsBindingException