Skip to content

Commit

Permalink
[WFLY-5401] Minor clean up of method name and use of constants for at…
Browse files Browse the repository at this point in the history
…tribute names.
  • Loading branch information
darranl committed Apr 7, 2016
1 parent 32c81d6 commit 5d10204
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Expand Up @@ -220,4 +220,8 @@ public interface Constants {
String SESSION_TIMEOUT = "session-timeout"; String SESSION_TIMEOUT = "session-timeout";
String CRAWLER_SESSION_MANAGEMENT = "crawler-session-management"; String CRAWLER_SESSION_MANAGEMENT = "crawler-session-management";
String MAX_AJP_PACKET_SIZE = "max-ajp-packet-size"; String MAX_AJP_PACKET_SIZE = "max-ajp-packet-size";
String STATISTICS_ENABLED = "statistics-enabled";
String DEFAULT_SECURITY_DOMAIN = "default-security-domain";


} }
Expand Up @@ -72,12 +72,12 @@ class UndertowRootDefinition extends PersistentResourceDefinition {
.setDefaultValue(new ModelNode().set(new ValueExpression("${jboss.node.name}"))) .setDefaultValue(new ModelNode().set(new ValueExpression("${jboss.node.name}")))
.build(); .build();
protected static final SimpleAttributeDefinition STATISTICS_ENABLED = protected static final SimpleAttributeDefinition STATISTICS_ENABLED =
new SimpleAttributeDefinitionBuilder("statistics-enabled", ModelType.BOOLEAN, true) new SimpleAttributeDefinitionBuilder(Constants.STATISTICS_ENABLED, ModelType.BOOLEAN, true)
.setAllowExpression(true) .setAllowExpression(true)
.setDefaultValue(new ModelNode(false)) .setDefaultValue(new ModelNode(false))
.build(); .build();
protected static final SimpleAttributeDefinition DEFAULT_SECURITY_DOMAIN = protected static final SimpleAttributeDefinition DEFAULT_SECURITY_DOMAIN =
new SimpleAttributeDefinitionBuilder("default-security-domain", ModelType.STRING, true) new SimpleAttributeDefinitionBuilder(Constants.DEFAULT_SECURITY_DOMAIN, ModelType.STRING, true)
.setAllowExpression(true) .setAllowExpression(true)
.setDefaultValue(new ModelNode(SecurityConstants.DEFAULT_APPLICATION_POLICY)) .setDefaultValue(new ModelNode(SecurityConstants.DEFAULT_APPLICATION_POLICY))
.addAccessConstraint(SensitiveTargetAccessConstraintDefinition.SECURITY_DOMAIN_REF) .addAccessConstraint(SensitiveTargetAccessConstraintDefinition.SECURITY_DOMAIN_REF)
Expand Down Expand Up @@ -113,10 +113,10 @@ public List<? extends PersistentResourceDefinition> getChildren() {
} }


static void registerTransformers(SubsystemRegistration subsystemRegistration) { static void registerTransformers(SubsystemRegistration subsystemRegistration) {
registerTransformers_3_0_0(subsystemRegistration); registerTransformers_3_1_0(subsystemRegistration);
} }


private static void registerTransformers_3_0_0(SubsystemRegistration subsystemRegistration) { private static void registerTransformers_3_1_0(SubsystemRegistration subsystemRegistration) {
final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance(); final ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();


TransformationDescription.Tools.register(builder.build(), subsystemRegistration, MODEL_VERSION_3_1_0); TransformationDescription.Tools.register(builder.build(), subsystemRegistration, MODEL_VERSION_3_1_0);
Expand Down

0 comments on commit 5d10204

Please sign in to comment.