Examples of IJLocal


Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJLocal

     * @see <a href="http://www.jcp.org/en/jsr/detail?id=220">EJB 3.0 Spec ?4.6.6</a>
     * @param sessionBean Session bean to analyze
     */
    public static void resolve(final EasyBeansEjbJarClassMetadata sessionBean) {

        IJLocal jLocal = sessionBean.getLocalInterfaces();
        IJRemote jRemote = sessionBean.getRemoteInterfaces();

        // No business interface or empty annotation (@Remote or @Local)
        if ((jLocal == null && jRemote == null) || (jLocal == null && jRemote != null && jRemote.getInterfaces().isEmpty())
                || (jRemote == null && jLocal != null && jLocal.getInterfaces().isEmpty())) {

            // The following interfaces are excluded when determining whether
            // the bean class has
            // more than one interface: java.io.Serializable;
            // java.io.Externalizable;
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJLocal

        // As the Bean class may not implement the interface, ads also the local and remote business interfaces
        List<String> businessInterfaces = new ArrayList<String>();
        // Add implemented interfaces
        businessInterfaces.addAll(Arrays.asList(visitingclassAnnotationMetadata.getInterfaces()));
        // Add local interfaces
        IJLocal localInterfaces = beanclassAnnotationMetadata.getLocalInterfaces();
        if (localInterfaces != null) {
            for (String itf : localInterfaces.getInterfaces()) {
                if (!businessInterfaces.contains(itf)) {
                    businessInterfaces.add(itf);
                }
            }
        }
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJLocal

            IWebServiceInfo info = createWebServiceInfo(sessionBean, factoryName);
            sessionBeanInfo.setWebServiceInfo(info);
        } // else this bean is not webservices annotated

        // get interfaces of bean
        IJLocal localItfs = sessionBean.getLocalInterfaces();
        IJRemote remoteItfs = sessionBean.getRemoteInterfaces();

        if (localItfs != null) {
            sessionBeanInfo.setLocalInterfaces(localItfs.getInterfaces());
            for (String itf : localItfs.getInterfaces()) {
                this.bindingReferences.add(createLocalItfRef(itf,
                                                             getEmbedded().getID(),
                                                             getId(),
                                                             factoryName,
                                                             sessionBean,
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJLocal

            for (String key : keys) {
                EasyBeansEjbJarClassMetadata classAnnotationMetadata =  ejbJarArchiveMetadata.getClassForBean(beanName, key);
                if (classAnnotationMetadata.isBean()) {

                    // Look at local interfaces
                    IJLocal localItfs = classAnnotationMetadata.getLocalInterfaces();
                    IJRemote remoteItfs = classAnnotationMetadata.getRemoteInterfaces();
                    if (localItfs != null) {
                        for (String itf : localItfs.getInterfaces()) {
                            EZBBeanNamingInfo namingInfo = BeanNamingInfoHelper.buildInfo(classAnnotationMetadata, itf, "Local",
                                    this.applicationName);
                            addInterface(namingInfo, namingStrategy, url);
                        }
                    }
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJLocal

                beanClassAnnotationMetadata.setInterfaces(newInterfacesLst.toArray(new String[newInterfacesLst.size()]));
                beanClassAnnotationMetadata.setInheritedInterfaces(inheritedInterfaces);

                // The local and remote interfaces need to be reported from the superclass to the current class.
                // Start with the local interfaces.
                IJLocal currentLocalInterfaces = beanClassAnnotationMetadata.getLocalInterfaces();
                IJLocal superLocalInterfaces = superMetadata.getLocalInterfaces();
                if (superLocalInterfaces != null) {
                    if (currentLocalInterfaces == null) {
                        currentLocalInterfaces = new JLocal();
                        beanClassAnnotationMetadata.setLocalInterfaces(currentLocalInterfaces);
                    }
                    for (String itf : superLocalInterfaces.getInterfaces()) {
                        if (!currentLocalInterfaces.getInterfaces().contains(itf)) {
                            currentLocalInterfaces.addInterface(itf);
                        }
                    }
                }
View Full Code Here

Examples of org.ow2.util.ee.metadata.ejbjar.api.struct.IJLocal

     */
    public static void resolve(final EasyBeansEjbJarClassMetadata sessionBean) throws ResolverException {
        sessionBean.getEjbJarDeployableMetadata();

        // Local and remote interfaces of the bean.
        IJLocal currentLocalInterfaces = sessionBean.getLocalInterfaces();
        IJRemote currentRemoteInterfaces = sessionBean.getRemoteInterfaces();

        // Get all interfaces of the bean
        String[] interfaces = sessionBean.getInterfaces();
        for (String itf : interfaces) {
            EasyBeansEjbJarClassMetadata itfAnnotationMetadata = sessionBean.getLinkedClassMetadata(itf);

            // Interface was analyzed, try to see the type of the interface
            if (itfAnnotationMetadata != null) {
                // Report type of interface in the bean
                IJLocal jLocal = itfAnnotationMetadata.getLocalInterfaces();
                if (jLocal != null) {
                    if (currentLocalInterfaces == null) {
                        currentLocalInterfaces = new JLocal();
                        sessionBean.setLocalInterfaces(currentLocalInterfaces);
                    }
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.