fulmine.model.container.subscription.remote
Class TxSubscription

java.lang.Object
  extended by fulmine.event.subscription.Subscription
      extended by fulmine.model.container.subscription.ContainerSubscription
          extended by fulmine.model.container.subscription.remote.TxSubscription
All Implemented Interfaces:
ISubscription, ISubscriptionParameters, IAddressable, IDestroyable

public final class TxSubscription
extends ContainerSubscription

Subscription for transmitting a local IContainer to a remote IFrameworkContext. This subscription is sent by a remote context to receive local container events. This is the counterpart to the RxSubscription.

The container(s) identified by this subscription are 'marked' for transmission by calling their IRemoteSubscribable.markForRemoteSubscription() method.

Author:
Ramon Servadei

Field Summary
 
Fields inherited from interface fulmine.event.subscription.ISubscription
WILDCARD_DOMAIN, WILDCARD_ID_REGEX, WILDCARD_TYPE
 
Constructor Summary
protected TxSubscription(ISubscriptionParameters parameters)
          Standard constructor
 
Method Summary
protected  boolean doAddOperation(IEventSource source)
          Template method for the operation to perform when a source match is added.
protected  boolean doRemoveOperation(IEventSource source)
          Template method for the operation to perform when a source match is removed.
protected  org.apache.commons.logging.Log getLog()
           
 
Methods inherited from class fulmine.event.subscription.Subscription
addListener, addMatch, destroy, equals, getAddress, getDomain, getIdentity, getListeners, getMatches, getType, hashCode, includes, removeListener, removeMatch, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TxSubscription

protected TxSubscription(ISubscriptionParameters parameters)
Standard constructor

Parameters:
parameters - the parameters for the subscription
Method Detail

doAddOperation

protected boolean doAddOperation(IEventSource source)
Description copied from class: Subscription
Template method for the operation to perform when a source match is added.

Overrides:
doAddOperation in class Subscription
Parameters:
source - the source the operation applies to
Returns:
true if the operation did something

doRemoveOperation

protected boolean doRemoveOperation(IEventSource source)
Description copied from class: Subscription
Template method for the operation to perform when a source match is removed.

Overrides:
doRemoveOperation in class Subscription
Parameters:
source - the source the operation applies to
Returns:
true if the operation did something

getLog

protected org.apache.commons.logging.Log getLog()
Overrides:
getLog in class ContainerSubscription


Copyright © 2007-2009. All Rights Reserved.