Examples of MemoryContext


Examples of org.apache.avalon.excalibur.naming.memory.MemoryContext

    public void export()
        throws Exception
    {
        final DefaultNameParser parser = new DefaultNameParser();
        final DefaultNamespace namespace = new DefaultNamespace( parser );
        final MemoryContext context = new MemoryContext( namespace, null, null );
        m_server = new RMINamingProviderImpl( context );

        // Start listener
        try
        {
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

     */
    private static final MemoryContext createMemoryContext()
    {
        final DefaultNamespace namespace =
            new DefaultNamespace(new DefaultNameParser());
        MemoryContext me = new MemoryContext(namespace, new Hashtable(), null);
       
        try
        {
            Context testContext = me.createSubcontext("test");
            testContext.bind("key", "jndivalue");
            testContext.bind("key2","jndivalue2");
            testContext.bind("short","1");
            testContext.bind("boolean","true");
            testContext.bind("byte","10");
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

     */
    private static final MemoryContext createMemoryContext()
    {
        final DefaultNamespace namespace =
            new DefaultNamespace(new DefaultNameParser());
        MemoryContext me = new MemoryContext(namespace, new Hashtable(), null);
       
        try
        {
            Context testContext = me.createSubcontext("test");
            testContext.bind("key", "jndivalue");
            testContext.bind("key2","jndivalue2");
            testContext.bind("short","1");
            testContext.bind("boolean","true");
            testContext.bind("byte","10");
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

    {
        final DefaultNameParser parser = new DefaultNameParser();
        final DefaultNamespace namespace = new DefaultNamespace( parser );
        namespace.addObjectFactory( new TestObjectFactory() );
        namespace.addStateFactory( new TestStateFactory() );
        return new MemoryContext( namespace, null, null );
    }
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

        Hashtable environment = new Hashtable();
        environment.put( Context.STATE_FACTORIES,
                         TestStateFactory.class.getName() );

        return new MemoryContext( namespace, environment, null );
    }
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

    public void export()
        throws Exception
    {
        final DefaultNameParser parser = new DefaultNameParser();
        final DefaultNamespace namespace = new DefaultNamespace( parser );
        final MemoryContext context =
            new MemoryContext( namespace, null, null );
        m_server = new RMINamingProviderImpl( context );

        // Start listener
        try
        {
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

     * Construct an <code>EmbeddedNameService</code>.
     */
    protected EmbeddedNameService() {
        DefaultNameParser parser = new DefaultNameParser();
        Namespace namespace = createNamespace(parser);
        Context context = new MemoryContext(namespace, null, null);
        _provider = new RMINamingProviderImpl(context);
    }
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

     */
    private static final MemoryContext createMemoryContext()
    {
        final DefaultNamespace namespace =
            new DefaultNamespace(new DefaultNameParser());
        MemoryContext me = new MemoryContext(namespace, new Hashtable(), null);
       
        try
        {
      Context testContext = me.createSubcontext("test");
            testContext.bind("key", "jndivalue");
            testContext.bind("key2","jndivalue2");
            testContext.bind("short","1");
            testContext.bind("boolean","true");
            testContext.bind("byte","10");
View Full Code Here

Examples of org.codehaus.spice.jndikit.memory.MemoryContext

     */
    private static final MemoryContext createMemoryContext()
    {
        final DefaultNamespace namespace =
            new DefaultNamespace(new DefaultNameParser());
        MemoryContext me = new MemoryContext(namespace, new Hashtable(), null);
       
        try
        {
            Context testContext = me.createSubcontext("test");
            testContext.bind("key", "jndivalue");
            testContext.bind("key2","jndivalue2");
            testContext.bind("short","1");
            testContext.bind("boolean","true");
            testContext.bind("byte","10");
View Full Code Here

Examples of org.jboss.virtual.plugins.context.memory.MemoryContext

public class Handler extends URLStreamHandler
{
   protected URLConnection openConnection(URL u) throws IOException
   {
      String host = u.getHost();
      MemoryContext ctx = MemoryContextFactory.getInstance().find(host);
      if (ctx == null)
         throw new IOException("vfs does not exist: " + u.toString());

      VirtualFile vf = ctx.getChild(ctx.getRoot(), u.getPath()).getVirtualFile();
      if (vf == null)
         throw new IOException("vfs does not exist: " + u.toString());

      return new VirtualFileURLConnection(u, vf);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.