/** * 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; }
/** * 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; }