Package org.objectweb.celtix.common.i18n

Examples of org.objectweb.celtix.common.i18n.Message


            AddressingProperties maps =
                ContextUtils.retrieveMAPs(request.getObjectMessageContext(), true, true);
            String action = maps.getAction() != null
                            ? maps.getAction().getValue()
                            : "empty";
            Message msg = new Message("NO_BINDING_FOR_OUT_OF_BAND_MSG", LOG, action);
            LOG.severe(msg.toString());
        }
    }
View Full Code Here


            || (state == PluginState.LOADING && nextState == PluginState.LOADED)
            || (state == PluginState.LOADED && nextState == PluginState.UNLOADED)) {
            LOG.fine("changing state from " + state + " to " + nextState);
            state = nextState;
        } else {
            Message msg = new Message("INVALID_STATE_TRANSITION_EXC", BUNDLE, state, nextState);
            throw new PluginException(msg);
        }
        notifyAll();
    }
View Full Code Here

     * @see org.objectweb.celtix.plugins.PluginManager#registerPlugin(org.objectweb.celtix.plugins.Plugin)
     */
    public synchronized void registerPlugin(Object plugin) throws PluginException {
        PluginInfo info = findPluginInfo(plugin);
        if (info.isRegisteredWith(this)) {
            throw new PluginException(new Message("ALREADY_REGISTERED_EXC", LOG, info.getClassName()));
        } else {
            info.register(this);
        }
    }
View Full Code Here

     * @see org.objectweb.celtix.plugins.PluginManager#unloadPlugin(java.lang.String)
     */
    public synchronized void unloadPlugin(Object plugin) throws PluginException {
        PluginInfo info = findPluginInfo(plugin);
        if (info.isRegistered()) {
            throw new PluginException(new Message("STILL_REGISTERED_EXC", LOG, info.getClassName()));
        } else {
            plugins.remove(plugin);
            info = null;
        }   
    }
View Full Code Here

    public synchronized void unregisterPlugin(Object plugin) throws PluginException {
        PluginInfo info = findPluginInfo(plugin);
        if (info.isRegisteredWith(this)) {
            info.unregister(this);
        } else {
            throw new PluginException(new Message("NOT_REGISTERED_EXC", LOG, info.getClassName()));
        }
    }
View Full Code Here

        // check for circular dependencies

        if (dependent != null) {
            info.setRequiredFor(dependent);
            if (info.isCircularDependency()) {
                throw new PluginException(new Message("CIRCULAR_DEPENDENCY_EXC", LOG, pluginClassName));
            }
        }

        if (null != pluginName) {
            Configuration configuration = getConfiguration();
View Full Code Here

        try {
            Class<?> pluginClass = Class.forName(pluginClassName, true, cl);
            plugin = pluginClass.newInstance();
        } catch (Exception ex) {
            LogUtils.log(LOG, Level.SEVERE, "PLUGIN_LOAD_FAILURE_MSG", ex, pluginClassName);
            throw new PluginException(new Message("LOAD_FAILED_EXC", LOG, pluginClassName), ex);
        }
        return plugin;
    }
View Full Code Here

            retransmissionQueue.purgeAcknowledged(seq);
            if (seq.allAcknowledged()) {
                try {
                    getHandler().getProxy().terminateSequence(seq);
                } catch (IOException ex) {
                    Message msg = new Message("SEQ_TERMINATION_FAILURE", LOG, seq.getIdentifier());
                    LOG.log(Level.SEVERE, msg.toString(), ex);
                }
            }
        }
    }
View Full Code Here

        Class<? extends RMStore> storeClass;
        try {
            storeClass = Class.forName(storeClassName, true, l).asSubclass(RMStore.class);
            theStore =  storeClass.newInstance();
        } catch (Exception ex) {
            throw new RMStoreException(new Message("RMSTORE_CREATION_EXC", LOG), ex);
        }        
    }
View Full Code Here

                if (!(seq.getAcksTo().getAddress().getValue().equals(replyToAddress)
                    || seq.canPiggybackAckOnPartialResponse())) {
                    try {
                        getHandler().getProxy().acknowledge(seq);
                    } catch (IOException ex) {
                        Message msg = new Message("SEQ_ACK_SEND_EXC", LOG, seq);
                        LOG.log(Level.SEVERE, msg.toString(), ex);
                    }
                }
            }
        } else {
            throw DestinationSequence.createUnknownSequenceFault(sequenceType.getIdentifier());
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.common.i18n.Message

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.