[jboss-jira] [JBoss JIRA] (WFCORE-795) Attribute groups not inherited by further attributes.

Darran Lofthouse (JIRA) issues at jboss.org
Fri Jul 3 09:24:03 EDT 2015


Darran Lofthouse created WFCORE-795:
---------------------------------------

             Summary: Attribute groups not inherited by further attributes.
                 Key: WFCORE-795
                 URL: https://issues.jboss.org/browse/WFCORE-795
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
            Reporter: Darran Lofthouse
            Assignee: Kabir Khan
             Fix For: 2.0.0.Alpha6


Take the following attribute defintion: -

{code}
    static final SimpleAttributeDefinition PATH = new SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.PATH, ModelType.STRING, true)
        .setAllowExpression(true)
        .setMinSize(1)
        .setAttributeGroup(ElytronDescriptionConstants.FILE)
        .setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
        .build();
{code}

If this is used as a basis for a new attribute: -

{code}
    static final SimpleAttributeDefinition PATH =
            new SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.PATH, FileAttributeDefinitions.PATH)
                    .setAttributeGroup(ElytronDescriptionConstants.FILE)
                    .setAllowNull(false)
                    .build();
{code}

The attribute group was not inherited and needed to be manually set again.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list