Examples of Tproperty


Examples of org.apache.aries.blueprint.jaxb.Tproperty

                        ReferenceList ref = (ReferenceList)fields[i].getAnnotation(ReferenceList.class);
                        TreferenceList tref = generateTrefList(ref, reflMap);
                        components.add(tref);
                       
                    } else {
                        Tproperty tp = createTproperty(fields[i].getName(), fields[i].getAnnotation(Inject.class));
                        props.add(tp);
                    }
                }
            }
                   
            // check if the bean also declares init, destroy or inject annotation on methods
            Method[] methods = clazz.getDeclaredMethods();
            for (int i = 0; i < methods.length; i++) {
                if (methods[i].isAnnotationPresent(Init.class)) {
                    tbean.setInitMethod(methods[i].getName());
                } else if (methods[i].isAnnotationPresent(Destroy.class)) {
                    tbean.setDestroyMethod(methods[i].getName());
                } else if (methods[i].isAnnotationPresent(Inject.class)) {
                    String propertyName = convertFromMethodName(methods[i].getName());
                    Tproperty tp = createTproperty(propertyName, methods[i].getAnnotation(Inject.class));
                    props.add(tp)
                } else if (methods[i].isAnnotationPresent(Arg.class)) {
                    Targument targ = createTargument(methods[i].getAnnotation(Arg.class));
                    props.add(targ);    
                }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tproperty

        String value = inj.value();
        String ref = inj.ref();
        String name = inj.name();
        String desp = inj.description();
                        
        Tproperty tp = new Tproperty();
        if (value.length() > 0) {
            Tvalue tvalue = new Tvalue();
            tvalue.setContent(value);
            tp.setValue(tvalue);
        }
       
        if (ref.length() > 0) {
            tp.setRefAttribute(ref);
        }
       
        if (name.length() > 0) {
            tp.setName(name);
        } else {
            tp.setName(nm);
        }
       
        if (desp.length() > 0) {
            Tdescription tdesp = new Tdescription();
            tdesp.getContent().add(desp);
            tp.setDescription(tdesp);
           
        }
       
        return tp;
    }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tproperty

        tbean.setId("Bar");
        tbean.setClazz("org.apache.aries.blueprint.sample.Bar");
        List<Object> props = tbean.getArgumentOrPropertyOrAny();

        String value = "Hello Bar";
        Tproperty tp = new Tproperty();
        tp.setName("value");
        //Tvalue tvalue = new Tvalue();
        //tvalue.setContent(value);
        //tp.setValue(tvalue);
        tp.setValueAttribute(value);
        props.add(tp);

        components.add(tbean);

        marshallOBRModel(tblueprint, file);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tproperty

                        ReferenceList ref = fields[i].getAnnotation(ReferenceList.class);
                        TreferenceList tref = generateTrefList(ref, reflMap);
                        components.add(tref);
                       
                    } else {
                        Tproperty tp = createTproperty(fields[i].getName(), fields[i].getAnnotation(Inject.class));
                        props.add(tp);
                    }
                }
            }
                   
            // check if the bean also declares init, destroy or inject annotation on methods
            Method[] methods = clazz.getDeclaredMethods();
            for (int i = 0; i < methods.length; i++) {
                if (methods[i].isAnnotationPresent(Init.class)) {
                    tbean.setInitMethod(methods[i].getName());
                } else if (methods[i].isAnnotationPresent(Destroy.class)) {
                    tbean.setDestroyMethod(methods[i].getName());
                } else if (methods[i].isAnnotationPresent(Inject.class)) {
                    String propertyName = convertFromMethodName(methods[i].getName());
                    Tproperty tp = createTproperty(propertyName, methods[i].getAnnotation(Inject.class));
                    props.add(tp)
                } else if (methods[i].isAnnotationPresent(Arg.class)) {
                    Targument targ = createTargument(methods[i].getAnnotation(Arg.class));
                    props.add(targ);    
                }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tproperty

        String value = inj.value();
        String ref = inj.ref();
        String name = inj.name();
        String desp = inj.description();
                        
        Tproperty tp = new Tproperty();
        if (value.length() > 0) {
            Tvalue tvalue = new Tvalue();
            tvalue.setContent(value);
            tp.setValue(tvalue);
        }
       
        if (ref.length() > 0) {
            tp.setRefAttribute(ref);
        }
       
        if (name.length() > 0) {
            tp.setName(name);
        } else {
            tp.setName(nm);
        }
       
        if (desp.length() > 0) {
            Tdescription tdesp = new Tdescription();
            tdesp.getContent().add(desp);
            tp.setDescription(tdesp);
           
        }
       
        return tp;
    }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tproperty

                        ReferenceList ref = (ReferenceList)fields[i].getAnnotation(ReferenceList.class);
                        TreferenceList tref = generateTrefList(ref, reflMap);
                        components.add(tref);
                       
                    } else {
                        Tproperty tp = createTproperty(fields[i].getName(), fields[i].getAnnotation(Inject.class));
                        props.add(tp);
                    }
                }
            }
                   
            // check if the bean also declares init, destroy or inject annotation on methods
            Method[] methods = clazz.getDeclaredMethods();
            for (int i = 0; i < methods.length; i++) {
                if (methods[i].isAnnotationPresent(Init.class)) {
                    tbean.setInitMethod(methods[i].getName());
                } else if (methods[i].isAnnotationPresent(Destroy.class)) {
                    tbean.setDestroyMethod(methods[i].getName());
                } else if (methods[i].isAnnotationPresent(Inject.class)) {
                    String propertyName = convertFromMethodName(methods[i].getName());
                    Tproperty tp = createTproperty(propertyName, methods[i].getAnnotation(Inject.class));
                    props.add(tp)
                } else if (methods[i].isAnnotationPresent(Arg.class)) {
                    Targument targ = createTargument(methods[i].getAnnotation(Arg.class));
                    props.add(targ);    
                }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tproperty

        String value = inj.value();
        String ref = inj.ref();
        String name = inj.name();
        String desp = inj.description();
                        
        Tproperty tp = new Tproperty();
        if (value.length() > 0) {
            Tvalue tvalue = new Tvalue();
            tvalue.setContent(value);
            tp.setValue(tvalue);
        }
       
        if (ref.length() > 0) {
            tp.setRefAttribute(ref);
        }
       
        if (name.length() > 0) {
            tp.setName(name);
        } else {
            tp.setName(nm);
        }
       
        if (desp.length() > 0) {
            Tdescription tdesp = new Tdescription();
            tdesp.getContent().add(desp);
            tp.setDescription(tdesp);
           
        }
       
        return tp;
    }
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.