Version: 1.1.1

org.biomoby.client
Class ExtendedServiceLocator

java.lang.Object
  extended by org.biomoby.client.MobyServiceLocator
      extended by org.biomoby.client.ExtendedServiceLocator

public class ExtendedServiceLocator
extends MobyServiceLocator

An extended container allowing to store information how to call a biomoby service using non-biomoby protocols. A typical example (often used for testing a new service even before it is deployed) is to call locally a Java class that implements a Biomoby service by dynamically loading the class into the same JVM (and not using Biomoby-native SOAP protocol).

Note that the structure of input data, however, remains still Biomoby compliant.

Version:
$Id: ExtendedServiceLocator.java,v 1.3 2008/03/03 11:34:17 senger Exp $
Author:
Martin Senger

Constructor Summary
ExtendedServiceLocator()
          Default constructor.
ExtendedServiceLocator(MobyService service)
          Another constructor, seeting also a service.
 
Method Summary
 String getLocalClass()
          Get a name of a local class that represents (implements) a service.
 boolean isLoop()
          Get back what can be set by setLoop(boolean).
 void setLocalClass(String localClassName)
          Set name of a local class that represents (implements) a service.
 void setLoop(boolean enabled)
          Setting 'enabled' to true indicates that no method should be call, at all.
 
Methods inherited from class org.biomoby.client.MobyServiceLocator
getPassword, getRegistryEndpoint, getRegistryNamespace, getService, getSuggestedTimeout, getUser, hasAuthentication, isAsBytes, setAsBytes, setPassword, setRegistryEndpoint, setRegistryNamespace, setService, setSuggestedTimeout, setUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedServiceLocator

public ExtendedServiceLocator()
Default constructor.


ExtendedServiceLocator

public ExtendedServiceLocator(MobyService service)
Another constructor, seeting also a service.

Method Detail

setLocalClass

public void setLocalClass(String localClassName)
Set name of a local class that represents (implements) a service.

If this class represent a Biomoby service (a usual case) then the class should have a method that accepts a String and produces a String (both strings complying with the Biomoby data), and that has the same name as a Biomoby service that it represents.

Parameters:
localClassName - a class that will be called instead of a SOAP-based remote Biomoby service

getLocalClass

public String getLocalClass()
Get a name of a local class that represents (implements) a service.

Returns:
a class name that will be called instead of a SOAP-based remote Biomoby service

setLoop

public void setLoop(boolean enabled)
Setting 'enabled' to true indicates that no method should be call, at all. Just the same input is turned back as output. This is mainly for testing purposes to see input data.

Parameters:
enabled - true will instruct not to call any service; default is false

isLoop

public boolean isLoop()
Get back what can be set by setLoop(boolean).


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010