Package org.jacorb.notification.interfaces

Examples of org.jacorb.notification.interfaces.Disposable


            fireProxyCreated(proxy);
        }


        // it removes proxy from map again.
        proxy.registerDisposable(new Disposable()
        {
            public void dispose()
            {
                synchronized (lock)
                {
View Full Code Here


            try
            {
                final JMXManageable manageable =
                    (JMXManageable) componentAdapter.getComponentInstance(picoContainer);

                manageable.registerDisposable(new Disposable()
                {
                    public void dispose()
                    {
                        try
                        {
View Full Code Here

        {
            channels_.put(_key, channel);
            isChannelsModified_ = true;
        }

        channel.registerDisposable(new Disposable()
        {
            public void dispose()
            {
                synchronized (channelsLock_)
                {
View Full Code Here

    private void addToConsumerAdmins(AbstractAdmin admin)
    {
        final Integer _key = admin.getID();

        admin.registerDisposable(new Disposable()
        {
            public void dispose()
            {
                synchronized (modifyConsumerAdminsLock_)
                {
View Full Code Here

    private void addToSupplierAdmins(AbstractAdmin admin)
    {
        final Integer _key = admin.getID();

        admin.registerDisposable(new Disposable()
        {
            public void dispose()
            {
                synchronized (modifySupplierAdminsLock_)
                {
View Full Code Here

   
    public PushTaskExecutor newExecutor(NotifyingDisposable disposable)
    {
        final PushTaskExecutor executor = new DefaultPushTaskExecutor(numberOfWorkersPerExecutor_);

        disposable.registerDisposable(new Disposable()
        {
            public void dispose()
            {
                executor.dispose();
            }
View Full Code Here

    {
        container_ = PicoContainerFactory.createRootContainer(container, (org.jacorb.orb.ORB) orb);

        if (container != null)
        {
            disposableManager_.addDisposable(new Disposable()
            {
                public void dispose()
                {
                    container.removeChildContainer(container_);
                }
            });
        }

        disposableManager_.addDisposable(new Disposable() {
            public void dispose()
            {
                final POA _poa = (POA) container_.getComponentInstanceOfType(POA.class);

                _poa.destroy(true, false);
View Full Code Here

            _orbThread.setDaemon(false);

            _orbThread.start();

            _factory.disposableManager_.addDisposable(new Disposable() {
                public void dispose() {
                    orb.shutdown(false);
                }
            });
        }
View Full Code Here

        thisCorbaRef_ = SupplierAdminHelper.narrow(activate());

        container_.registerComponent(new CachingComponentAdapter(new CORBAObjectComponentAdapter(
                SupplierAdmin.class, thisCorbaRef_)));

        registerDisposable(new Disposable()
        {
            public void dispose()
            {
                container_.unregisterComponent(SupplierAdmin.class);
            }
View Full Code Here

        {
            final Object o = i.next();

            try
            {
                Disposable disposable = (Disposable) o;

                try
                {
                    ((AbstractPoolable) o).setObjectPool(null);
                } catch (ClassCastException e)
                {
                    // ignored
                }

                disposable.dispose();
            } catch (ClassCastException e)
            {
                // ignored
            }
        }
View Full Code Here

TOP

Related Classes of org.jacorb.notification.interfaces.Disposable

Copyright © 2018 www.massapicom. 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.