org.robokind.impl.messaging.lifecycle
Class JMSAvroPolymorphicSenderLifecycle<Msg>

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeNotifier
      extended by org.robokind.api.common.lifecycle.AbstractLifecycleProvider<org.robokind.api.messaging.MessageSender,org.robokind.api.messaging.MessageSender<Msg>>
          extended by org.robokind.impl.messaging.lifecycle.JMSAvroPolymorphicSenderLifecycle<Msg>
All Implemented Interfaces:
org.robokind.api.common.lifecycle.ServiceLifecycleProvider<org.robokind.api.messaging.MessageSender>, org.robokind.api.common.property.PropertyChangeSource

public class JMSAvroPolymorphicSenderLifecycle<Msg>
extends org.robokind.api.common.lifecycle.AbstractLifecycleProvider<org.robokind.api.messaging.MessageSender,org.robokind.api.messaging.MessageSender<Msg>>

Author:
Matthew Stevenson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.robokind.api.common.lifecycle.ServiceLifecycleProvider
org.robokind.api.common.lifecycle.ServiceLifecycleProvider.Validator
 
Field Summary
protected static String theDestination
           
protected static String theSession
           
 
Fields inherited from class org.robokind.api.common.lifecycle.AbstractLifecycleProvider
myRegistrationProperties, myService, myServiceClassNames
 
Fields inherited from interface org.robokind.api.common.lifecycle.ServiceLifecycleProvider
PROP_DEPENDENCY_ADDED, PROP_DEPENDENCY_REMOVED
 
Constructor Summary
JMSAvroPolymorphicSenderLifecycle(JMSAvroPolymorphicRecordBytesAdapter<Msg> adapter, Class<Msg> messageClass, String senderId, String sessionId, String destinationId)
           
 
Method Summary
protected  org.robokind.api.messaging.MessageSender<Msg> create(Map<String,Object> dependencies)
           
 Class<org.robokind.api.messaging.MessageSender> getServiceClass()
           
protected  void handleChange(String dependencyId, Object service, Map<String,Object> dependencies)
           
 
Methods inherited from class org.robokind.api.common.lifecycle.AbstractLifecycleProvider
addRuntimeDependency, dependencyChanged, getDependencyDescriptors, getRegistrationProperties, getService, getServiceClassNames, isSatisfied, removeRuntimeDependency, start, stop
 
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

theSession

protected static final String theSession
See Also:
Constant Field Values

theDestination

protected static final String theDestination
See Also:
Constant Field Values
Constructor Detail

JMSAvroPolymorphicSenderLifecycle

public JMSAvroPolymorphicSenderLifecycle(JMSAvroPolymorphicRecordBytesAdapter<Msg> adapter,
                                         Class<Msg> messageClass,
                                         String senderId,
                                         String sessionId,
                                         String destinationId)
Method Detail

create

protected org.robokind.api.messaging.MessageSender<Msg> create(Map<String,Object> dependencies)
Specified by:
create in class org.robokind.api.common.lifecycle.AbstractLifecycleProvider<org.robokind.api.messaging.MessageSender,org.robokind.api.messaging.MessageSender<Msg>>

handleChange

protected void handleChange(String dependencyId,
                            Object service,
                            Map<String,Object> dependencies)
Specified by:
handleChange in class org.robokind.api.common.lifecycle.AbstractLifecycleProvider<org.robokind.api.messaging.MessageSender,org.robokind.api.messaging.MessageSender<Msg>>

getServiceClass

public Class<org.robokind.api.messaging.MessageSender> getServiceClass()
Specified by:
getServiceClass in class org.robokind.api.common.lifecycle.AbstractLifecycleProvider<org.robokind.api.messaging.MessageSender,org.robokind.api.messaging.MessageSender<Msg>>


Copyright © 2011-2013. All Rights Reserved.