org.media.mn8.conf
Class NamingConf

java.lang.Object
  |
  +--org.media.mn8.conf.NamingConf

public class NamingConf
extends Object

Class who is responsible for loading and managing the configuration information stored in /conf/naning.mn8.xml

Version:
$Revision: 1.16 $ $Date: 2002/09/16 23:06:30 $
Author:
Remus Pereni

Field Summary
static String _SYSTEM_ERR_URI
          Where will be stored in our JNDI Namespace the error stream
static String _SYSTEM_IN_URI
          Where will be stored in our JNDI Namespace the input stream
static String _SYSTEM_OUT_URI
          Where will be stored in our JNDI Namespace the output stream
 
Method Summary
static void cleanAll()
           
 String getEnvMapping()
          It is possible that mn8 will not use it's MemoryContext but rather it will use some external one.
 Hashtable getEnvProperties()
          Returns an hashtable containing all the java system variables as the operating system environment variables, selected using the patterns from /conf/naming.mn8.xml the and elements.
 Hashtable getInitialContextProperties()
          Returns an hashtable loaded with all the data contained in the /conf/naming.mn8.xml file in the initial.context section.
This hashtable should be enough to create an InitialContext.
 String getMemMapping()
          It is possible that mn8 will not use it's MemoryContext but rather it will use some external one.
static NamingConf getReference()
          Method for getting the NamingConf instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_SYSTEM_OUT_URI

public static final String _SYSTEM_OUT_URI
Where will be stored in our JNDI Namespace the output stream

See Also:
Constant Field Values

_SYSTEM_ERR_URI

public static final String _SYSTEM_ERR_URI
Where will be stored in our JNDI Namespace the error stream

See Also:
Constant Field Values

_SYSTEM_IN_URI

public static final String _SYSTEM_IN_URI
Where will be stored in our JNDI Namespace the input stream

See Also:
Constant Field Values
Method Detail

cleanAll

public static void cleanAll()

getReference

public static NamingConf getReference()
Method for getting the NamingConf instance. Don't forger that it implements a Singleton pattern.

Returns:
The default instance of NamingConf

getInitialContextProperties

public Hashtable getInitialContextProperties()
Returns an hashtable loaded with all the data contained in the /conf/naming.mn8.xml file in the initial.context section.
This hashtable should be enough to create an InitialContext.

Returns:
An hashtable containing the properties needed to successfully create an JNDI InitialContext.

getEnvProperties

public Hashtable getEnvProperties()
Returns an hashtable containing all the java system variables as the operating system environment variables, selected using the patterns from /conf/naming.mn8.xml the and elements.

Returns:
A hastable containing the os and java environment variables.

getEnvMapping

public String getEnvMapping()
It is possible that mn8 will not use it's MemoryContext but rather it will use some external one. It is possible to map the memory context in any context desired in the external one providing a mapping which will be applied.

Returns:
The mapping into the external JNDI context of the env:// namespace.

getMemMapping

public String getMemMapping()
It is possible that mn8 will not use it's MemoryContext but rather it will use some external one. It is possible to map the memory context in any context desired in the external one providing a mapping which will be applied.

Returns:
The mapping into the external JNDI context of the mem:// namespace.


"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."