org.media.naming
Class MemoryContextFactory
java.lang.Object
|
+--org.media.naming.MemoryContextFactory
- All Implemented Interfaces:
- InitialContextFactory
- public final class MemoryContextFactory
- extends Object
- implements InitialContextFactory
Implements a context factory for MemoryContext
. When set properly
InitialContext
will return a MemoryContext
referencing the named path in the shared memory space.
To use this context factory the JNDI properties file must include
the following properties:
java.naming.factory.initial=org.media.naming.MemoryContextFactory
java.naming.provider.url=
Any non-empty URL will return a context to that path in the object tree,
relative to the same shared root. The returned context is read/write.
This class was inspired by the tyrex.naming package from the
Tyrex project.
All credits for the good stuff should go to Assaf Arkin and
the Exolab group,
all the bad stuff blame it on
me :).
- Version:
- $Revision: 1.3 $ $Date: 2002/07/11 21:48:16 $
- Author:
- Remus Pereni
- See Also:
MemoryContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryContextFactory
public MemoryContextFactory()
getInitialContext
public Context getInitialContext(Hashtable env)
throws NamingException
- Returns an initial context based on the
Context.PROVIDER_URL
environment attribute. If this attribute is missing or an empty
string, a new memory context be returned. Otherwise, the specified
context will be returned.
- Specified by:
getInitialContext
in interface InitialContextFactory
NamingException
"Copyright © 2000-2002 Internet Multicasting Services, media.org & noLimits Technologies. All Rights Reserved."