Examples of unregister()


Examples of org.apache.camel.spi.ManagementAgent.unregister()

        expect(mbeanServer.isRegistered(registeredObjectName)).andReturn(true);
        mbeanServer.unregisterMBean(registeredObjectName);
        expect(mbeanServer.isRegistered(sourceObjectName)).andReturn(false);
        replay(mbeanServer);

        agent.unregister(sourceObjectName);

        assertFalse(agent.isRegistered(sourceObjectName));
        verify(mbeanServer);
    }
View Full Code Here

Examples of org.apache.cocoon.portal.profile.ProfileManager.unregister()

                        service.getComponentManager().getLinkService().addEventToLink(event);
                    }
                    CopletFactory factory = service.getComponentManager().getCopletFactory();
                    factory.remove( ((CopletLayout)layout).getCopletInstanceData());
                }
                profileManager.unregister(layout);
            } catch (ServiceException ce) {
                throw new ProcessingException("Unable to lookup portal service.", ce);
            } finally {
                this.manager.release( service );
                this.manager.release(eventManager);
View Full Code Here

Examples of org.apache.cxf.endpoint.ServerRegistry.unregister()

         ServerRegistry registry = serverBus.getExtension(ServerRegistry.class);
         List<Server> servers = registry.getServers();
         for (Server sr : servers) {
             EndpointInfo ei = sr.getEndpoint().getEndpointInfo();
             if (null != ei && ei.getAddress().endsWith(server.getAddress())){
                 registry.unregister(sr);
                 sr.destroy();
             }
         }

        @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.apache.cxf.management.InstrumentationManager.unregister()

            InstrumentationManager im = bus.getExtension(InstrumentationManager.class);
            if (this != im) {
                bus.setExtension(this, InstrumentationManager.class);
                try {
                    ManagedBus mbus = new ManagedBus(bus);
                    im.unregister(mbus);
                    if (LOG.isLoggable(Level.INFO)) {
                        LOG.info("unregistered " + mbus.getObjectName());
                    }
                } catch (JMException e) {
                    // ignore
View Full Code Here

Examples of org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl.unregister()

            ResolveMatchType rmt = c.resolve(ref);
            System.out.println("Resolved " + rmt.getEndpointReference());
            System.out.println(rmt.getTypes());
            System.out.println(rmt.getXAddrs());

            service.unregister(h);
            System.out.println("4");
            c.close();
           
            System.exit(0);
        } catch (Throwable t) {
View Full Code Here

Examples of org.apache.felix.webconsole.SimpleWebConsolePlugin.unregister()

        SimpleWebConsolePlugin plugin = this.plugin;

        if (tracker.getTrackingCount() == 0 && plugin != null)
        {
            // remove service
            plugin.unregister();
            this.plugin = null;
            // unregister configuration printer too
            ServiceRegistration reg = printerRegistration;
            if (reg != null)
            {
View Full Code Here

Examples of org.apache.felix.webconsole.SimpleWebConsolePlugin.unregister()

    {
        SimpleWebConsolePlugin plugin = this.plugin;

        if (tracker.getTrackingCount() == 0 && plugin != null)
        {
            plugin.unregister();
            this.plugin = null;
        }

    }
}
View Full Code Here

Examples of org.apache.felix.webconsole.SimpleWebConsolePlugin.unregister()

    {
        SimpleWebConsolePlugin plugin = this.plugin;

        if (tracker.getTrackingCount() == 0 && plugin != null)
        {
            plugin.unregister();
            this.plugin = null;
        }

    }
}
View Full Code Here

Examples of org.apache.http.conn.scheme.SchemeRegistry.unregister()

        assertSame(http, schmreg.getScheme("http"));
        assertSame(http, schmreg.getScheme(host));
        assertSame(https, schmreg.getScheme("https"));
        assertSame(https, schmreg.getScheme(hosts));

        schmreg.unregister("http");
        schmreg.unregister("https");

        assertNull(schmreg.get("http")); // get() does not throw exception
        try {
            schmreg.getScheme("http"); // getScheme() does throw exception
View Full Code Here

Examples of org.apache.jetspeed.tools.pamanager.FileSystemPAM.unregister()

        catch (Exception e1)
        {

        }

        pam.unregister("jetspeed");

        try
        {
            DirectoryHelper dirHelper = new DirectoryHelper(new File(webAppsDir + "/TestSecurityRoles"));
            paWar3 = new PortletApplicationWar(dirHelper, "TestSecurityRoles", "/TestSecurityRoles" );
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.