Package org.rhq.core.domain.configuration

Examples of org.rhq.core.domain.configuration.PropertyDefinitionDynamic


        throws InvalidPluginDescriptorException {
        String description = parseMultiValue(dynamicProperty.getDescription(), dynamicProperty.getLongDescription());
        String displayName = (dynamicProperty.getDisplayName() != null) ? dynamicProperty.getDisplayName()
            : StringUtils.deCamelCase(dynamicProperty.getName());

        PropertyDefinitionDynamic property = new PropertyDefinitionDynamic(dynamicProperty.getName(), description,
            dynamicProperty.isRequired(), PropertyDynamicType.DATABASE, dynamicProperty.getDatabaseBacking().getKey()
                .value());

        property.setReadOnly(dynamicProperty.isReadOnly());
        property.setSummary(dynamicProperty.isSummary());
        property.setDisplayName(displayName);
        property.setActivationPolicy(translateActivationPolicy(dynamicProperty.getActivationPolicy()));

        return property;
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.configuration.PropertyDefinitionDynamic

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.