org.granite.gravity.adapters
Class SimpleServiceAdapter

java.lang.Object
  extended by org.granite.gravity.adapters.ServiceAdapter
      extended by org.granite.gravity.adapters.SimpleServiceAdapter

public class SimpleServiceAdapter
extends ServiceAdapter

Author:
William DRAI

Constructor Summary
SimpleServiceAdapter()
           
 
Method Summary
 void configure(XMap adapterProperties, XMap destinationProperties)
           
 Topic getTopic(String id)
           
 Topic getTopic(String id, boolean create)
           
 Topic getTopic(TopicId id)
           
 TopicId getTopicId(String id)
           
 boolean hasTopic(String id)
           
 Object invoke(Channel fromChannel, AsyncMessage message)
           
 Object manage(Channel fromChannel, CommandMessage message)
           
 
Methods inherited from class org.granite.gravity.adapters.ServiceAdapter
getAdapterState, getDestination, getGravity, getId, getSecurityPolicy, setAdapterState, setDestination, setGravity, setId, setSecurityPolicy, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServiceAdapter

public SimpleServiceAdapter()
Method Detail

configure

public void configure(XMap adapterProperties,
                      XMap destinationProperties)
               throws ServiceException
Overrides:
configure in class ServiceAdapter
Throws:
ServiceException

getTopic

public Topic getTopic(TopicId id)

getTopic

public Topic getTopic(String id)

getTopic

public Topic getTopic(String id,
                      boolean create)

getTopicId

public TopicId getTopicId(String id)

hasTopic

public boolean hasTopic(String id)

invoke

public Object invoke(Channel fromChannel,
                     AsyncMessage message)
Specified by:
invoke in class ServiceAdapter

manage

public Object manage(Channel fromChannel,
                     CommandMessage message)
Specified by:
manage in class ServiceAdapter