|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.AbstractComponent
org.objectweb.dream.message.codec.BasicCodecManagerImpl
Basic implementation of codec manager. Use a CodecRepository
to
associate codec name with ADL.
Field Summary | |
protected CodecRepository |
codecRepositoryItf
|
static String |
CODECS_COMPONENT_ITF_NAME
The name of the client interface bound to the component interface of the composite containning codecs. |
protected ContentController |
codecsCCItf
|
protected Component |
codecsCompositeItf
|
Fields inherited from class org.objectweb.dream.AbstractComponent |
bindingLogger, componentDesc, fcState, lifeCycleLogger, logger, weaveableC |
Fields inherited from interface org.objectweb.dream.message.codec.CodecManager |
ITF_NAME |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
STARTED, STOPPED |
Constructor Summary | |
BasicCodecManagerImpl()
|
Method Summary | |
void |
addCodec(String codecName,
Object hints)
Adds a codec component for the specified codec name. |
void |
bindFc(String clientItfName,
Object serverItf)
|
protected void |
createCodec(String codecName,
String codecADL,
Object hints)
Creates a codec and adds it in the codecs composite |
protected Component |
findCodec(String codecName)
Finds and returns a codec component with the specified name. |
Component |
getCodec(String codecName)
Returns the codec component for the given codec name. |
String[] |
listFc()
|
void |
removeCodec(String codecName)
Removes a codec component. |
Methods inherited from class org.objectweb.dream.AbstractComponent |
getFcState, initComponent, lookupFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CODECS_COMPONENT_ITF_NAME
protected CodecRepository codecRepositoryItf
protected Component codecsCompositeItf
protected ContentController codecsCCItf
Constructor Detail |
public BasicCodecManagerImpl()
Method Detail |
public void addCodec(String codecName, Object hints) throws CodecManagerException
CodecManager
addCodec
in interface CodecManager
codecName
- the name of the codec.hints
- additional parameters.
CodecManagerException
- if the manager can't add the codec.CodecManager.addCodec(String, Object)
public void removeCodec(String codecName) throws CodecManagerException
CodecManager
removeCodec
in interface CodecManager
codecName
- the name of the codec.
CodecManagerException
- the the given codec name is unknown, or if
the codec component is in use.CodecManager.removeCodec(String)
public Component getCodec(String codecName) throws CodecManagerException
CodecManager
getCodec
in interface CodecManager
codecName
- the name of the codec.
CodecManagerException
- the the given codec name is unknown.CodecManager.getCodec(String)
protected Component findCodec(String codecName)
null
.
protected void createCodec(String codecName, String codecADL, Object hints) throws CodecManagerException
CodecManagerException
public String[] listFc()
listFc
in interface BindingController
BindingController.listFc()
public void bindFc(String clientItfName, Object serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException
bindFc
in interface BindingController
bindFc
in class AbstractComponent
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
BindingController.bindFc(String,
Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |