/**
  * {@inheritDoc} Registers an add operation handler or a remove operation handler if one was
  * provided to the constructor.
  */
 @Override
 public void registerOperations(ManagementResourceRegistration resourceRegistration) {
   super.registerOperations(resourceRegistration);
   // We always need to add a 'describe' operation for root resource
   resourceRegistration.registerOperationHandler(
       GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
 }
 @Override
 public void registerOperations(ManagementResourceRegistration resourceRegistration) {
   super.registerOperations(resourceRegistration);
   super.registerAddOperation(
       resourceRegistration, getAddHandler(), OperationEntry.Flag.RESTART_NONE);
   super.registerRemoveOperation(
       resourceRegistration,
       new ListenerRemoveHandler(getAddHandler()),
       OperationEntry.Flag.RESTART_NONE);
 }
Esempio n. 3
0
  @Override
  public void registerOperations(ManagementResourceRegistration registry) {
    super.registerOperations(registry);

    QueueControlHandler.INSTANCE.registerOperations(registry, getResourceDescriptionResolver());
  }