org.objectweb.dream.pushwithreturn
Class KeyGeneratorIntegerImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.pushwithreturn.KeyGeneratorIntegerImpl
- All Implemented Interfaces:
- BindingController, KeyGenerator, LifeCycleController, Loggable
- public class KeyGeneratorIntegerImpl
- extends AbstractComponent
- implements KeyGenerator
This generator generates KeyInteger
objects with an increasing
integer. It adds a KeyChunk
chunk to the message.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_INTEGER_KEY
public static final KeyInteger ALL_INTEGER_KEY
- The "All" Integer key.
KeyGeneratorIntegerImpl
public KeyGeneratorIntegerImpl()
generateKey
public Key generateKey(Message message)
throws Exception
- Description copied from interface:
KeyGenerator
- Generates a key for the given message. This method possibly adds a
KeyChunk
to the message.
- Specified by:
generateKey
in interface KeyGenerator
- Parameters:
message
- the message for which a key must be generated.
- Returns:
- the generated key.
- Throws:
Exception
- if this is not possible to generate a key (for instance
when the generator try to add a Chunk to a non extensible
message).- See Also:
KeyGenerator.generateKey(org.objectweb.dream.message.Message)
bindFc
public void bindFc(String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Specified by:
bindFc
in interface BindingController
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
- See Also:
BindingController.bindFc(java.lang.String,
java.lang.Object)
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.