protected final ServiceController<?> addHardcodedAbsolutePath(final ServiceTarget serviceTarget, final String pathName, final String path) { ServiceController<?> controller = addAbsolutePathService(serviceTarget, pathName, path, null); addPathEntry(pathName, path, null, true); return controller; }
@Override public void handleRollback(OperationContext context, ModelNode operation) { if (pathEventContext.isInstallServices()) { // Re-add entry to the path manager pathManager.addPathEntry(name, path, relativeTo, false); } } });
protected final ServiceController<?> addHardcodedAbsolutePath(final ServiceTarget serviceTarget, final String pathName, final String path) { ServiceController<?> controller = addAbsolutePathService(serviceTarget, pathName, path, null); addPathEntry(pathName, path, null, true); return controller; }
@Override public void handleRollback(OperationContext context, ModelNode operation) { if (pathEventContext.isInstallServices()) { // Re-add entry to the path manager pathManager.addPathEntry(name, path, relativeTo, false); } } });
/** * Add a {@code PathEntry} and install a {@code Service<String>} for one of the standard read-only paths * that are determined from this process' environment. Not to be used for paths stored in the persistent * configuration. * @param serviceTarget service target to use for the service installation * @param pathName the logical name of the path within the model. Cannot be {@code null} * @param path the value of the path within the model. This is an absolute path. Cannot be {@code null} * @return the controller for the installed {@code Service<String>} */ protected final ServiceController<?> addHardcodedAbsolutePath(final ServiceTarget serviceTarget, final String pathName, final String path) { ServiceController<?> controller = addAbsolutePathService(serviceTarget, pathName, path); addPathEntry(pathName, path, null, true); if (capabilityRegistry != null) { RuntimeCapability<Void> pathCapability = PATH_CAPABILITY.fromBaseCapability(pathName); capabilityRegistry.registerCapability( new RuntimeCapabilityRegistration(pathCapability, CapabilityScope.GLOBAL, new RegistrationPoint(PathAddress.EMPTY_ADDRESS, null))); } return controller; }
/** * Add a {@code PathEntry} and install a {@code Service<String>} for one of the standard read-only paths * that are determined from this process' environment. Not to be used for paths stored in the persistent * configuration. * @param serviceTarget service target to use for the service installation * @param pathName the logical name of the path within the model. Cannot be {@code null} * @param path the value of the path within the model. This is an absolute path. Cannot be {@code null} * @return the controller for the installed {@code Service<String>} */ protected final ServiceController<?> addHardcodedAbsolutePath(final ServiceTarget serviceTarget, final String pathName, final String path) { ServiceController<?> controller = addAbsolutePathService(serviceTarget, pathName, path); addPathEntry(pathName, path, null, true); if (capabilityRegistry != null) { RuntimeCapability<Void> pathCapability = PATH_CAPABILITY.fromBaseCapability(pathName); capabilityRegistry.registerCapability( new RuntimeCapabilityRegistration(pathCapability, CapabilityScope.GLOBAL, new RegistrationPoint(PathAddress.EMPTY_ADDRESS, null))); } return controller; }
pathManager.addPathEntry(name, path, relativeTo, false);
pathManager.addPathEntry(name, path, relativeTo, false);
pathManager.addPathEntry(name, path, relativeTo, false);
pathManager.addPathEntry(name, path, relativeTo, false);