public static ServerAddHandler create(LocalHostControllerInfo hostControllerInfo, ServerInventory serverInventory, ControlledProcessState processState, final File domainDataDir) { return new ServerAddHandler(hostControllerInfo, serverInventory, processState, domainDataDir); }
/** * Creates a ServerConfigResourceDefinition. * @param hostControllerInfo * @param serverInventory the server inventory to use for runtime server lifecycle operations. May be {@code null} * in which case no such operations will be registered * @param pathManager the {@link PathManagerService} to use for the child {@code path} resources. Cannot be {@code null} */ public ServerConfigResourceDefinition(final LocalHostControllerInfo hostControllerInfo, final ServerInventory serverInventory, final PathManagerService pathManager, final ControlledProcessState processState, final File domainDataDir) { super(PathElement.pathElement(SERVER_CONFIG), HostResolver.getResolver(SERVER_CONFIG, false), ServerAddHandler.create(hostControllerInfo, serverInventory, processState, domainDataDir), ServerRemoveHandler.INSTANCE); assert pathManager != null : "pathManager is null"; this.serverInventory = serverInventory; this.pathManager = pathManager; }
protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { createCoreModel(model); for (AttributeDefinition attr : ServerConfigResourceDefinition.WRITABLE_ATTRIBUTES) { attr.validateAndSet(operation, model); } }
/** * Creates a ServerConfigResourceDefinition. * @param hostControllerInfo * @param serverInventory the server inventory to use for runtime server lifecycle operations. May be {@code null} * in which case no such operations will be registered * @param pathManager the {@link PathManagerService} to use for the child {@code path} resources. Cannot be {@code null} */ public ServerConfigResourceDefinition(final LocalHostControllerInfo hostControllerInfo, final ServerInventory serverInventory, final PathManagerService pathManager, final ControlledProcessState processState, final File domainDataDir) { super(new SimpleResourceDefinition.Parameters(PathElement.pathElement(SERVER_CONFIG), HostResolver.getResolver(SERVER_CONFIG, false)) .setAddHandler(ServerAddHandler.create(hostControllerInfo, serverInventory, processState, domainDataDir)) .setRemoveHandler(ServerRemoveHandler.INSTANCE) .addCapabilities(SERVER_CONFIG_CAPABILITY)); assert pathManager != null : "pathManager is null"; this.serverInventory = serverInventory; this.pathManager = pathManager; }
public static ServerAddHandler create(LocalHostControllerInfo hostControllerInfo, ServerInventory serverInventory, ControlledProcessState processState, final File domainDataDir) { return new ServerAddHandler(hostControllerInfo, serverInventory, processState, domainDataDir); }