|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.client.MobyServiceLocator org.biomoby.client.ExtendedServiceLocator
public class ExtendedServiceLocator
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.
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 |
---|
public ExtendedServiceLocator()
public ExtendedServiceLocator(MobyService service)
Method Detail |
---|
public void setLocalClass(String localClassName)
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.
localClassName
- a class that will be called instead of a
SOAP-based remote Biomoby servicepublic String getLocalClass()
public void setLoop(boolean enabled)
enabled
- true will instruct not to call any service;
default is falsepublic boolean isLoop()
setLoop(boolean)
.
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |