Examples of LookupBindingSourceDescription


Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

                }
                bindingDescription.setBindingType(localInterfaceType.getName());

                if (!isEmpty(lookup)) {
                    if(componentDescription != null ) {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup,componentDescription));
                    } else {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup,moduleDescription));
                    }
                } else if (!isEmpty(ejbName)) {
                    //TODO: implement cross deployment references
                    final ServiceName beanServiceName = deploymentUnit.getServiceName()
                        .append("component").append(ejbName).append("VIEW").append(bindingDescription.getBindingType());
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

        if (bindingDescription != null) {
            if (!isEmpty(description)) {
                bindingDescription.setDescription(description);
            }
            if (!isEmpty(lookup)) {
                bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup,componentDescription));
            } else if (!isEmpty(beanName)) {
                final ServiceName beanServiceName = deploymentUnit.getServiceName()
                        .append("component").append(beanName).append("VIEW").append(bindingDescription.getBindingType());
                bindingDescription.setReferenceSourceDescription(new ServiceBindingSourceDescription(beanServiceName));
            } else {
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

        if (bindingDescription != null) {
            if (!isEmpty(description)) {
                bindingDescription.setDescription(description);
            }
            if (!isEmpty(lookup)) {
                bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup));
            } else if (!isEmpty(beanName)) {
                final ServiceName beanServiceName = deploymentUnit.getServiceName()
                        .append("component").append(beanName).append("VIEW").append(bindingDescription.getBindingType());
                bindingDescription.setReferenceSourceDescription(new ServiceBindingSourceDescription(beanServiceName));
            } else {
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

            if (!isEmpty(description)) {
                bindingDescription.setDescription(description);
            }
            // give preference to "lookup" before "beanName"
            if (!isEmpty(lookup)) {
                bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup,componentDescription));
            } else if (!isEmpty(beanName)) {
                final ServiceName beanServiceName = deploymentUnit.getServiceName()
                        .append("component").append(beanName).append("VIEW").append(bindingDescription.getBindingType());
                bindingDescription.setReferenceSourceDescription(new ServiceBindingSourceDescription(beanServiceName));
            } else {
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

                processInjectionTargets(classLoader, deploymentReflectionIndex, puRef, bindingDescription, EntityManagerFactory.class);
                bindingDescription.setBindingType(EntityManagerFactory.class.getName());

                if (!isEmpty(lookup)) {
                    if (componentDescription != null) {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, componentDescription));
                    } else {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, moduleDescription));
                    }
                } else if (!isEmpty(persistenceUnitName)) {
                    bindingDescription.setReferenceSourceDescription(getPersistenceUnitBindingSource(deploymentUnit,persistenceUnitName));
                } else {
                    bindingDescription.setReferenceSourceDescription(new LazyBindingSourceDescription());
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

                processInjectionTargets(classLoader, deploymentReflectionIndex, puRef, bindingDescription, EntityManager.class);
                bindingDescription.setBindingType(EntityManager.class.getName());

                if (!isEmpty(lookup)) {
                    if (componentDescription != null) {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, componentDescription));
                    } else {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, moduleDescription));
                    }
                } else if (!isEmpty(persistenceUnitName)) {
                    PropertiesMetaData properties = puRef.getProperties();
                    Map map = new HashMap();
                    if(properties != null) {
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

                processInjectionTargets(classLoader, deploymentReflectionIndex, puRef, bindingDescription, EntityManagerFactory.class);
                bindingDescription.setBindingType(EntityManagerFactory.class.getName());

                if (!isEmpty(lookup)) {
                    if (componentDescription != null) {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, componentDescription));
                    } else {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, moduleDescription));
                    }
                } else if (!isEmpty(persistenceUnitName)) {
                    bindingDescription.setReferenceSourceDescription(getPersistenceUnitBindingSource(deploymentUnit,persistenceUnitName));
                } else {
                    bindingDescription.setReferenceSourceDescription(new LazyBindingSourceDescription());
View Full Code Here

Examples of org.jboss.as.ee.component.LookupBindingSourceDescription

                processInjectionTargets(classLoader, deploymentReflectionIndex, puRef, bindingDescription, EntityManager.class);
                bindingDescription.setBindingType(EntityManager.class.getName());

                if (!isEmpty(lookup)) {
                    if (componentDescription != null) {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, componentDescription));
                    } else {
                        bindingDescription.setReferenceSourceDescription(new LookupBindingSourceDescription(lookup, moduleDescription));
                    }
                } else if (!isEmpty(persistenceUnitName)) {
                    PropertiesMetaData properties = puRef.getProperties();
                    Map map = new HashMap();
                    if(properties != null) {
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.