Package org.apache.axis.utils.cache

Examples of org.apache.axis.utils.cache.JavaClass


        // If we have an engine, use its class cache
        if (engine != null) {
            ClassCache cache     = engine.getClassCache();
            try {
                JavaClass jc = cache.lookup(clsName, cl);
                serviceClass = jc.getJavaClass();
            } catch (ClassNotFoundException e) {
                log.error(JavaUtils.getMessage("exception00"), e);
                throw new AxisFault(JavaUtils.getMessage("noClassForService00", clsName), e);
            }
        } else {
View Full Code Here


        try {
            Object obj        = getServiceObject(msgContext,
                                                 service,
                                                 clsName);
            JavaClass jc    = JavaClass.find(obj.getClass());

            Message        reqMsg  = msgContext.getRequestMessage();
            SOAPEnvelope   reqEnv  = (SOAPEnvelope)reqMsg.getSOAPEnvelope();
            Message        resMsg  = msgContext.getResponseMessage();
            SOAPEnvelope   resEnv  = (resMsg == null) ?
View Full Code Here

                                             String clsName)
        throws Exception
    {
        ClassLoader cl     = msgContext.getClassLoader();
        ClassCache cache   = msgContext.getAxisEngine().getClassCache();
        JavaClass  jc      = cache.lookup(clsName, cl);

        return jc.getJavaClass().newInstance();
    }
View Full Code Here

                } else {
                    cl = msgContext.getClassLoader();
                }
                if (engine != null) {
                    ClassCache cache     = engine.getClassCache();
                    JavaClass       jc   = null;
                    try {
                        jc = cache.lookup(clsName, cl);
                        serviceDescription.setImplClass(jc.getJavaClass());
                    } catch (ClassNotFoundException e) {
                        return null;
                    }
                } else {
                    try {
View Full Code Here

        // If we have an engine, use its class cache
        if (engine != null) {
            ClassCache cache     = engine.getClassCache();
            try {
                JavaClass jc = cache.lookup(clsName, cl);
                serviceClass = jc.getJavaClass();
            } catch (ClassNotFoundException e) {
                log.error(Messages.getMessage("exception00"), e);
                throw new AxisFault(Messages.getMessage("noClassForService00", clsName), e);
            }
        } else {
View Full Code Here

                                             String clsName)
        throws Exception
    {
        ClassLoader cl     = msgContext.getClassLoader();
        ClassCache cache   = msgContext.getAxisEngine().getClassCache();
        JavaClass  jc      = cache.lookup(clsName, cl);

        return jc.getJavaClass().newInstance();
    }
View Full Code Here

                                             String clsName)
        throws Exception
    {
        ClassLoader cl     = msgContext.getClassLoader();
        ClassCache cache   = msgContext.getAxisEngine().getClassCache();
        JavaClass  jc      = cache.lookup(clsName, cl);

        return jc.getJavaClass().newInstance();
    }
View Full Code Here

        // If we have an engine, use its class cache
        if (engine != null) {
            ClassCache cache     = engine.getClassCache();
            try {
                JavaClass jc = cache.lookup(clsName, cl);
                serviceClass = jc.getJavaClass();
            } catch (ClassNotFoundException e) {
                log.error(Messages.getMessage("exception00"), e);
                throw new AxisFault(Messages.getMessage("noClassForService00", clsName), e);
            }
        } else {
View Full Code Here

    }

    public synchronized void registerClass( String name, Class cls ) {
        /* And finally register it */
        /***************************/
        JavaClass oldClass = (JavaClass)classCache.get(name);
        if (oldClass!=null && oldClass.getJavaClass()==cls) return;
        classCache.put( name, new JavaClass(cls) );
    }
View Full Code Here

     * if necessary.
     * @param className name of the class desired
     * @return JavaClass entry
     */
    public JavaClass lookup(String className) throws ClassNotFoundException {
        JavaClass jc = (JavaClass) classCache.get( className );
        if ( jc == null ) {
            loadClass( className );
            jc = (JavaClass) classCache.get( className );
        }

View Full Code Here

TOP

Related Classes of org.apache.axis.utils.cache.JavaClass

Copyright © 2018 www.massapicom. 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.