Examples of disable()


Examples of org.codehaus.jackson.smile.SmileGenerator.disable()

   
    protected JsonGenerator createGenerator(OutputStream output) throws IOException {
      SmileGenerator generator = smileFactory.createJsonGenerator(output);
      generator.enable(SmileGenerator.Feature.WRITE_HEADER);
      generator.enable(SmileGenerator.Feature.WRITE_END_MARKER);
      generator.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
      return generator;
    }
}
View Full Code Here

Examples of org.eclipse.dltk.core.search.indexing.IndexManager.disable()

  }
 
  @SuppressWarnings("restriction")
  protected static void disableDLTKIndexer() {
    IndexManager indexManager = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
    indexManager.disable();
  }
 
  @SuppressWarnings("restriction")
  protected static void enableDLTKIndexer(boolean waitUntilReady) {
    IndexManager indexManager = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
View Full Code Here

Examples of org.eurekastreams.web.client.ui.common.SpinnerLabelButton.disable()

              EventBus.getInstance().addObserver(InsertedRequestForGroupMembershipResponseEvent.class,
                      new Observer<InsertedRequestForGroupMembershipResponseEvent>()
                      {
                          public void update(final InsertedRequestForGroupMembershipResponseEvent inArg1)
                          {
                              button.disable();
                              EventBus.getInstance()
                                      .notifyObservers(
                                              new ShowNotificationEvent(new Notification(
                                                      "Your request for access has been sent")));
                          }
View Full Code Here

Examples of org.ff4j.FF4j.disable()

    @Test
    public void testDisableFeature() {
        FF4j ff4j = new FF4j();
        ff4j.autoCreate(true);
        ff4j.disable("newffff");
        Assert.assertTrue(ff4j.exist("newffff"));
        Assert.assertFalse(ff4j.check("newffff"));
    }

    @Test(expected = FeatureNotFoundException.class)
View Full Code Here

Examples of org.ff4j.core.Feature.disable()

    /** {@inheritDoc} */
    @Override
    public void disable(String uid) {
        Feature f = read(uid);
        f.disable();
        update(f);
    }

    /** {@inheritDoc} */
    @Override
View Full Code Here

Examples of org.infinispan.configuration.cache.RecoveryConfigurationBuilder.disable()

         switch (attribute) {
            case ENABLED:
               if (Boolean.parseBoolean(value)) {
                  recovery.enable();
               } else {
                  recovery.disable();
               }
               break;
            case RECOVERY_INFO_CACHE_NAME:
               recovery.recoveryInfoCacheName(value);
               break;
View Full Code Here

Examples of org.infinispan.configuration.global.GlobalJmxStatisticsConfigurationBuilder.disable()

                .mBeanServerLookup(new MBeanServerProvider(server))
                .jmxDomain(EmbeddedCacheManagerService.getServiceName(null).getCanonicalName())
                .allowDuplicateDomains(true)
            ;
        } else {
            jmxBuilder.disable();
        }
        this.config = builder.build();
    }

    @Override
View Full Code Here

Examples of org.java_bandwidthlimiter.StreamManager.disable()

        String enable = request.param("enable");
        if (enable != null) {
            if( Boolean.parseBoolean(enable) ) {
                streamManager.enable();
            } else {
                streamManager.disable();
            }
        }
        return Reply.saying().ok();
    }
View Full Code Here

Examples of org.jboss.forge.furnace.repositories.MutableAddonRepository.disable()

      AddonRegistry registry = furnace.getAddonRegistry();
      Addon dep2 = registry.getAddon(AddonId.from("dep2", "2"));
      RecordingEventManager manager = registry.getServices(RecordingEventManager.class).get();
      Assert.assertEquals(3, manager.getPostStartupCount());
      MutableAddonRepository repository = (MutableAddonRepository) furnace.getRepositories().get(0);
      repository.disable(dep2.getId());
      Addons.waitUntilStopped(dep2);
      Assert.assertEquals(1, manager.getPreShutdownCount());
   }
}
View Full Code Here

Examples of org.jboss.modcluster.ModClusterServiceMBean.disable()

            context.addStep(new OperationStepHandler() {
                @Override
                public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
                    ServiceController<?> controller = context.getServiceRegistry(false).getService(ContainerEventHandlerService.SERVICE_NAME);
                    final ModClusterServiceMBean service = (ModClusterServiceMBean) controller.getValue();
                    service.disable();

                    context.completeStep(new OperationContext.RollbackHandler() {
                        @Override
                        public void handleRollback(OperationContext context, ModelNode operation) {
                            service.enable();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.