Skip to content
Permalink
Browse files

WFLY-12006 EJB3 IIOP attributes enable-by-default and use-qualified-n…

…ame should be required
  • Loading branch information
soul2zimate committed Apr 18, 2019
1 parent d550882 commit 7027a755f71c6824e995285e085c19b8c0387ba5
@@ -47,8 +47,8 @@ private EJB3IIOPAdd() {

@Override
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
final Boolean enableByDefault = EJB3IIOPResourceDefinition.ENABLE_BY_DEFAULT.resolveModelAttribute(context, model).asBoolean();
final Boolean useQualifiedName = EJB3IIOPResourceDefinition.USE_QUALIFIED_NAME.resolveModelAttribute(context, model).asBoolean();
final boolean enableByDefault = EJB3IIOPResourceDefinition.ENABLE_BY_DEFAULT.resolveModelAttribute(context, model).asBoolean();
final boolean useQualifiedName = EJB3IIOPResourceDefinition.USE_QUALIFIED_NAME.resolveModelAttribute(context, model).asBoolean();
final IIOPSettingsService settingsService = new IIOPSettingsService(enableByDefault, useQualifiedName);
context.addStep(new AbstractDeploymentChainStep() {
protected void execute(DeploymentProcessorTarget processorTarget) {
@@ -54,15 +54,17 @@


static final SimpleAttributeDefinition USE_QUALIFIED_NAME =
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.USE_QUALIFIED_NAME, ModelType.BOOLEAN, true)
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.USE_QUALIFIED_NAME, ModelType.BOOLEAN)
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_NONE)
.setRequired(true)
.build();

static final SimpleAttributeDefinition ENABLE_BY_DEFAULT =
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.ENABLE_BY_DEFAULT, ModelType.BOOLEAN, true)
new SimpleAttributeDefinitionBuilder(EJB3SubsystemModel.ENABLE_BY_DEFAULT, ModelType.BOOLEAN)
.setAllowExpression(true)
.setFlags(AttributeAccess.Flag.RESTART_NONE)
.setRequired(true)
.build();

private static final Map<String, AttributeDefinition> ATTRIBUTES;

0 comments on commit 7027a75

Please sign in to comment.
You can’t perform that action at this time.