Package org.apache.shale.tiger.managed.config

Examples of org.apache.shale.tiger.managed.config.ManagedBeanConfig.addProperty()


                        name = field.getName();
                    }
                    mpc.setName(name);
                    mpc.setType(field.getType().getName()); // FIXME - primitives, arrays, etc.
                    mpc.setValue(property.value());
                    mbc.addProperty(mpc);
                    continue;
                }
                // Support deprecated @Value annotation as well
                Value value = (Value) field.getAnnotation(Value.class);
                if (value != null) {
View Full Code Here


                    }
                    ManagedPropertyConfig mpc = new ManagedPropertyConfig();
                    mpc.setName(field.getName());
                    mpc.setType(field.getType().getName()); // FIXME - primitives, arrays, etc.
                    mpc.setValue(value.value());
                    mbc.addProperty(mpc);
                    continue;
                }
            }
            config.addManagedBean(mbc);
        }
View Full Code Here

        ManagedPropertyConfig config = (ManagedPropertyConfig) digester.pop();
        ManagedBeanConfig parent = (ManagedBeanConfig) digester.peek();
        ManagedPropertyConfig previous = parent.getProperty(config.getName());
        if (previous == null) {
            parent.addProperty(config);
        } else {
            merge(config, previous);
        }

    }
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.