Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface fi.hut.tcm.jacob.conduits.InstallMessenger

Implementing Classes:
Installer

public abstract interface InstallMessenger
extends Messenger
InstallMessenger Carries Installation information for ConduitFactories. When a Message arrives at a ConduitFactory, the factory determines if the Message's Messenger is an InstallMessenger. If so, the ConduitFactory queries the message about the exact operation to perform. The InstallMessenger is used to perform the query. If not so, the ConduitFactory uses its internal resources.


Method Summary
int getEndpointCount(Message message)
           
Side getEndpoint(Message message, int index)
          Returns a Side (corresponding to index) where the cloned Conduit is to be attached to, or null if the Side is to be determined by the ConduitFactory itself.
java.lang.Object getKey(Message message, int index)
           
Conduit getPrototype(Message message)
          Returns a prototype conduit that the ConduitFactory attempts to clone, or null if to use the prototype stored at the factory.
 

Method Detail

getEndpoint

public Side getEndpoint(Message message,
                        int index)
Returns a Side (corresponding to index) where the cloned Conduit is to be attached to, or null if the Side is to be determined by the ConduitFactory itself.
Parameters:
message - message where to look for the Sides
index - typically Side.A or Side.B, i.e., index of the side that is to be attached to.
Returns:
a Side to attach, or null.

getEndpointCount

public int getEndpointCount(Message message)

getPrototype

public Conduit getPrototype(Message message)
Returns a prototype conduit that the ConduitFactory attempts to clone, or null if to use the prototype stored at the factory.
Parameters:
message - the message that carries the conduit
Returns:
a Conduit to clone, or null

getKey

public java.lang.Object getKey(Message message,
                     int index)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD