@Override protected void recordCapabilitiesAndRequirements( OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { super.recordCapabilitiesAndRequirements(context, operation, resource); // TODO: delete this once optional requirements no longer require the existence of a capability context.registerCapability(CLUSTERED_SINGLETON_CAPABILITY); }
@Override protected void performRuntime( OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { super.performRuntime(context, operation, model, verificationHandler, newControllers); final GateInWCIService wciService = new GateInWCIService(); final ServiceBuilder<GateInWCIService> serviceBuilder = context .getServiceTarget() .addService(GateInWCIService.NAME, wciService) .addDependency( WebSubsystemServices.JBOSS_WEB, WebServer.class, wciService.getWebServer()) .addListener(verificationHandler) .setInitialMode(ServiceController.Mode.ACTIVE); newControllers.add(serviceBuilder.install()); }