Package org.apache.tuscany.sca.core.factory

Examples of org.apache.tuscany.sca.core.factory.ObjectFactory


                    String pid = null;
                   
                    if (serviceProps != null) {
                        for (ComponentProperty prop : serviceProps) {
                            if (prop.getName().equals("service.pid")) {
                                ObjectFactory objFactory = propertyValueFactory.createValueFactory(prop,
                                        prop.getValue(), String.class);
                                pid = (String)objFactory.getInstance();
                            }
                        }
                    }
                    if (pid == null || pidsProcessed.contains(pid))
                        continue;
View Full Code Here


            Object propertyValue = null;
            if (clazz == null || java.lang.Object.class.equals(clazz)) {
                propertyValue = property.getValue();
            } else {
                ObjectFactory objfactory = javaFactory.createValueFactory(property, property.getValue(), clazz);
                propertyValue = objfactory.getInstance();
            }
            properties.put(propName, propertyValue);
        }
    }
View Full Code Here

                    String pid = null;
                   
                    if (serviceProps != null) {
                        for (ComponentProperty prop : serviceProps) {
                            if (prop.getName().equals("service.pid")) {
                                ObjectFactory objFactory = propertyValueFactory.createValueFactory(prop,
                                        prop.getValue(), String.class);
                                pid = (String)objFactory.getInstance();
                            }
                        }
                    }
                    if (pid == null || pidsProcessed.contains(pid))
                        continue;
View Full Code Here

            Object propertyValue = null;
            if (clazz == null || java.lang.Object.class.equals(clazz)) {
                propertyValue = property.getValue();
            } else {
                ObjectFactory objfactory = javaFactory.createValueFactory(property, property.getValue(), clazz);
                propertyValue = objfactory.getInstance();
            }
            properties.put(propName, propertyValue);
        }
    }
View Full Code Here

                    String pid = null;

                    if (serviceProps != null) {
                        for (ComponentProperty prop : serviceProps) {
                            if (prop.getName().equals("service.pid")) {
                                ObjectFactory objFactory = propertyValueFactory.createValueFactory(prop,
                                        prop.getValue(), String.class);
                                pid = (String)objFactory.getInstance();
                            }
                        }
                    }
                    if (pid == null || pidsProcessed.contains(pid))
                        continue;
View Full Code Here

            Object propertyValue = null;
            if (clazz == null || java.lang.Object.class.equals(clazz)) {
                propertyValue = property.getValue();
            } else {
                ObjectFactory objfactory = javaFactory.createValueFactory(property, property.getValue(), clazz);
                propertyValue = objfactory.getInstance();
            }
            properties.put(propName, propertyValue);
        }
    }
View Full Code Here

        for (ComponentProperty prop : componentProperties) {
            JavaElementImpl element = propertyMembers.get(prop.getName());
           
            if (element != null && !(element.getAnchor() instanceof Constructor) && prop.getValue() != null) {
                Class propertyJavaType = JavaIntrospectionHelper.getBaseType(element.getType(), element.getGenericType());
                ObjectFactory objFactory = propertyValueFactory.createValueFactory(prop, prop.getValue(), propertyJavaType);
                   
                factories.put(element, objFactory);
                injectionSites.add(element);
           
        }
View Full Code Here

        List<ComponentProperty> props = component.getProperties();
        for (ComponentProperty prop : props) {
            if (prop.getName().equals(name)) {
                // On finding the property, create a factory for it and create a Bean using
                // the factory
                ObjectFactory factory = propertyFactory.createValueFactory(prop, prop.getValue(), requiredType);
                propertyObject = (B)factory.getInstance();
            } // end if
        } // end for

        return propertyObject;
    }
View Full Code Here

                    String pid = null;

                    if (serviceProps != null) {
                        for (ComponentProperty prop : serviceProps) {
                            if (prop.getName().equals("service.pid")) {
                                ObjectFactory objFactory = propertyValueFactory.createValueFactory(prop,
                                        prop.getValue(), String.class);
                                pid = (String)objFactory.getInstance();
                            }
                        }
                    }
                    if (pid == null || pidsProcessed.contains(pid))
                        continue;
View Full Code Here

                    String pid = null;
                   
                    if (serviceProps != null) {
                        for (ComponentProperty prop : serviceProps) {
                            if (prop.getName().equals("service.pid")) {
                                ObjectFactory objFactory = propertyValueFactory.createValueFactory(prop,
                                        prop.getValue(), String.class);
                                pid = (String)objFactory.getInstance();
                            }
                        }
                    }
                    if (pid == null || pidsProcessed.contains(pid))
                        continue;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.core.factory.ObjectFactory

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.