org.objectweb.dream.message.codec
Class CodecRepositoryImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.message.codec.CodecRepositoryImpl
- All Implemented Interfaces:
- ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, CodecRepository, CodecRepositoryAttributeController, AttributeController, BindingController, LifeCycleController
public class CodecRepositoryImpl
- extends AbstractComponent
- implements CodecRepository, CodecRepositoryAttributeController
Codec repository implementation using a Properties
to map codec name
with codec ADL. The content of the Properties
object is
initialized by reading a properties file (see
Properties.load(InputStream)
). The name of this file is given by the
attribute PropertiesRessourceName
(see
CodecRepositoryAttributeController
). This attribute must be set
before the component is started.
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
repositoryRessourceName
protected String repositoryRessourceName
repository
protected Properties repository
CodecRepositoryImpl
public CodecRepositoryImpl()
getCodecADL
public String getCodecADL(String codecName)
- Description copied from interface:
CodecRepository
- Returns the name of an ADL for the given codec name.
- Specified by:
getCodecADL
in interface CodecRepository
- Parameters:
codecName
- a codec name
- Returns:
- the name of an ADL for the given codec name, or
null
if the codec name is unknown. - See Also:
CodecRepository.getCodecADL(String)
getPropertiesRessourceName
public String getPropertiesRessourceName()
- Description copied from interface:
CodecRepositoryAttributeController
- Returns the name of the properties file.
- Specified by:
getPropertiesRessourceName
in interface CodecRepositoryAttributeController
- Returns:
- the name of the properties file.
- See Also:
CodecRepositoryAttributeController.getPropertiesRessourceName()
setPropertiesRessourceName
public void setPropertiesRessourceName(String name)
throws CodecManagerException
- Description copied from interface:
CodecRepositoryAttributeController
- Set the name of the properties file.
- Specified by:
setPropertiesRessourceName
in interface CodecRepositoryAttributeController
- Parameters:
name
- the name of the properties file.
- Throws:
CodecManagerException
- if the properties file can't be red.- See Also:
CodecRepositoryAttributeController.setPropertiesRessourceName(String)
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
startFc
public void startFc()
throws IllegalLifeCycleException
- Specified by:
startFc
in interface LifeCycleController
- Overrides:
startFc
in class AbstractComponent
- Throws:
IllegalLifeCycleException
- See Also:
LifeCycleController.startFc()
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.