Package org.xdoclet.plugin.ejb.interfaces

Examples of org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin


        }
    }

    private JavaClass findBeanByInterface(Collection metadata, Type type) {
        JavaClass retVal = null;
        LocalInterfacePlugin localPlugin = EjbRuntime.getLocalInterfacePlugin();
        RemoteInterfacePlugin remotePlugin = EjbRuntime.getRemoteInterfacePlugin();

        if (log.isDebugEnabled()) {
            log.debug("Looking for bean with local|remote interface named " + type);
        }

        for (Iterator iter = metadata.iterator(); retVal == null && iter.hasNext();) {
            JavaClass javaClass = (JavaClass) iter.next();
            Type localType = localPlugin.getVirtualType(javaClass).getType();
            Type remoteType = remotePlugin.getVirtualType(javaClass).getType();

            if (localType.equals(type) || remoteType.equals(type)) {
                if (log.isDebugEnabled()) {
                    log.debug("Match found for " + javaClass.getFullyQualifiedName());
View Full Code Here


    }

    protected synchronized LocalInterfacePlugin _getLocalInterfacePlugin() {
        if (this.localInterfacePlugin == null) {
            this.localInterfacePlugin =
              new LocalInterfacePlugin(null, null, config);
        }

        return this.localInterfacePlugin;
    }
View Full Code Here

TOP

Related Classes of org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin

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.