Examples of unregister()


Examples of org.izi.Registration.unRegister()

      Registration listenerRegistration = registrations.getFor(target);
      if (listenerRegistration != null)
      {
         try
         {
            listenerRegistration.unRegister(listener, target);
         }
         catch (Exception e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

Examples of org.japura.controller.Context.unregister()

    if (group.count() == 0) {
    group.shutdown();
    }

    Context context = controller.getContext();
    context.unregister(controller);

    Controller parentController = controller.getParent();
    if (parentController != null) {
    controller.unregisterParent();
    parentController.unregisterChild(controller);
View Full Code Here

Examples of org.japura.controller.Group.unregister()

  // unregister all
  for (Controller controller : freeList) {
    Application.getMessageManager().unregister(controller);

    Group group = controller.getGroup();
    group.unregister(controller);
    if (group.count() == 0) {
    group.shutdown();
    }

    Context context = controller.getContext();
View Full Code Here

Examples of org.jboss.dna.graph.property.NamespaceRegistry.unregister()

    }

    @Test
    public void shouldParseXmlDocumentWithNamespacesThatAreNotYetInRegistry() throws IOException, SAXException {
        NamespaceRegistry reg = context.getNamespaceRegistry();
        reg.unregister(JcrLexicon.Namespace.URI);
        reg.unregister(NT_NAMESPACE_URI);
        // Verify the prefixes don't exist ...
        assertThat(reg.getPrefixForNamespaceUri(JcrLexicon.Namespace.URI, false), is(nullValue()));
        assertThat(reg.getPrefixForNamespaceUri(NT_NAMESPACE_URI, false), is(nullValue()));
        assertThat(reg.getPrefixForNamespaceUri("http://default.namespace.com", false), is(nullValue()));
View Full Code Here

Examples of org.jboss.mx.loading.RepositoryClassLoader.unregister()

      // Should still be able to load the class
      lr.loadClass("test.implementation.loading.support.Trivial");

      // Remove the other
      ucl2.unregister();
   }

   public void testClassConflictBetweenMLets() throws Exception
   {
      // NOTE:
View Full Code Here

Examples of org.jboss.mx.loading.UnifiedClassLoader.unregister()

      // Should still be able to load the class
      lr.loadClass("test.implementation.loading.support.Trivial");

      // Remove the other
      ucl2.unregister();
   }

   public void testClassConflictBetweenMLets() throws Exception
   {
      // NOTE:
View Full Code Here

Examples of org.jboss.wsf.spi.management.EndpointRegistry.unregister()

                if (target == null) {
                    SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
                    EndpointRegistryFactory factory = spiProvider.getSPI(EndpointRegistryFactory.class);
                    EndpointRegistry registry = factory.getEndpointRegistry();
                    for (final Endpoint endpoint : deployment.getService().getEndpoints()) {
                        registry.unregister(endpoint);
                    }
                }
                // END workaround
                DeploymentAspectManager dam = new DeploymentAspectManagerImpl();
                dam.setDeploymentAspects(aspects);
View Full Code Here

Examples of org.jclouds.management.ManagementContext.unregister()

      expectLastCall().once();
      managementContext.manage(anyObject(ComputeManagement.class), eq("testname"));
      expectLastCall().once();
      managementContext.unmanage(anyObject(ComputeManagement.class), eq("testname"));
      expectLastCall().once();
      managementContext.unregister(anyObject(Compute.class));
      expectLastCall().once();
      replay(managementContext);

      Compute compute = ContextBuilder.newBuilder(new JcloudsTestComputeProviderMetadata()).name("testname")
              .credentials("user", "password")
View Full Code Here

Examples of org.jnode.driver.DeviceManager.unregister()

                try {
                    // If we failed, try to undo the changes that we managed to make
                    if (fs != null) {
                        fss.unregisterFileSystem(dev);
                    }
                    dm.unregister(dev);
                } catch (Exception ex) {
                    Logger log = Logger.getLogger(FTPMountCommand.class);
                    log.fatal("Cannot undo failed mount attempt", ex);
                }
            }
View Full Code Here

Examples of org.jtrim.event.ListenerRef.unregister()

            } finally {
                changesLock.unlock();
            }

            if (toRemove != null) {
                toRemove.unregister();
            }
            if (toAdd != null) {
                toAdd.init(query.addPlatformChangeListener(new Runnable() {
                    @Override
                    public void run() {
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.