Examples of AxisClassLoader


Examples of org.apache.axis.utils.AxisClassLoader

    protected void setup() {
    }
   
    public void testGetClassLoaderNoArg()
    {
  AxisClassLoader expect = AxisClassLoader.getClassLoader();
  AxisClassLoader actual = AxisClassLoader.getClassLoader();
        assertTrue(expect instanceof AxisClassLoader);
        assertEquals(expect, actual);
    }
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

        assertEquals(expect, actual);
    }

    public void testRegisterClassNameClass()
    {
  AxisClassLoader acl = AxisClassLoader.getClassLoader();
        java.util.Stack stack = new java.util.Stack(); //Stack was chosen arbitrarily
        Class clazz = stack.getClass();
        acl.registerClass("myStack",clazz);
        assertTrue(acl.isClassRegistered("myStack"));
    }
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

        assertTrue(acl.isClassRegistered("myStack"));
    }

    public void testIsClassRegistered()
    {
  AxisClassLoader acl = AxisClassLoader.getClassLoader();
        java.util.Stack stack = new java.util.Stack(); //Stack was chosen arbitrarily
        Class clazz = stack.getClass();
        acl.registerClass("anotherStack",clazz);
        if (acl.isClassRegistered("noStack"))
        {
            fail("Nonce class name should not be registered.");
        }
        assertTrue(acl.isClassRegistered("anotherStack"));
    }
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

        assertTrue(acl.isClassRegistered("anotherStack"));
    }

    public void testDeregisterClass()
    {
  AxisClassLoader acl = AxisClassLoader.getClassLoader();
        java.util.Stack stack = new java.util.Stack(); //Stack was chosen arbitrarily
        Class clazz = stack.getClass();
        acl.registerClass("myStack",clazz);
        assertTrue(acl.isClassRegistered("myStack"));
        acl.deregisterClass("myStack");
        if (acl.isClassRegistered("myStack"))
        {
            fail("Class should have been deregistered.");
        }
    }
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

        }
    }

    public void testLoadClass() throws ClassNotFoundException
    {
  AxisClassLoader acl = AxisClassLoader.getClassLoader();
        Class clazz = acl.loadClass("java.util.BitSet"); //BitSet was chosen arbitrarily
        assertTrue(clazz.getName().equals("java.util.BitSet"));

        java.util.Stack stack = new java.util.Stack(); //Stack was chosen arbitrarily
        Class clazz1 = stack.getClass();
        acl.registerClass("myStack",clazz1);
        Class klass = acl.loadClass("myStack");
        assertTrue(klass.getName().equals("java.util.Stack"));
    }
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

        assertTrue(klass.getName().equals("java.util.Stack"));
    }

    public void testLookup() throws ClassNotFoundException
    {
  AxisClassLoader acl = AxisClassLoader.getClassLoader();
        JavaClass jc = acl.lookup("java.util.BitSet"); //BitSet was chosen arbitrarily
        Class c = jc.getJavaClass();
        assertTrue(c.getName().equals("java.util.BitSet"));
    }
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

                }
                (new File(errFile)).delete();

                AxisClassLoader.removeClassLoader( clsName );
            }
            AxisClassLoader cl = msgContext.getClassLoader();
            if ( !cl.isClassRegistered(clsName) )
                cl.registerClass( clsName, cFile );
            msgContext.setClassLoader( cl );

            /* Create a new RPCProvider - this will be the "service"   */
            /* that we invoke.                                                */
            /******************************************************************/
 
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

        if (service == null) return;

        String  clsName    = (String) service.getOption( "className" );

        try {
            AxisClassLoader cl     = msgContext.getClassLoader();
            JavaClass       jc     = cl.lookup(clsName);
            Class           cls    = jc.getJavaClass();
           
            if (DEBUG_LOG) {
                System.err.println("Looking up method '" + methodName +
                                   "' in class " + clsName);
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

                }
                (new File(errFile)).delete();

                AxisClassLoader.removeClassLoader( clsName );
            }
            AxisClassLoader cl = msgContext.getClassLoader( clsName );
            if ( !cl.isClassRegistered(clsName) )
                cl.registerClass( clsName, cFile );
            msgContext.setClassLoader( cl );

            /* Create a new RPCProvider - this will be the "service"   */
            /* that we invoke.                                                */
            /******************************************************************/
 
View Full Code Here

Examples of org.apache.axis.utils.AxisClassLoader

    protected void setup() {
    }
   
    public void testGetClassLoaderNoArg()
    {
  AxisClassLoader expect = AxisClassLoader.getClassLoader();
  AxisClassLoader actual = AxisClassLoader.getClassLoader("<default_class_loader>");
        assertTrue(expect instanceof AxisClassLoader);
        assertEquals(expect, actual);
    }
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.