Examples of EZBComponentException


Examples of org.ow2.easybeans.component.api.EZBComponentException

     * @throws EZBComponentException if registering fails.
     */
    public void register(final String componentName, final EZBComponent component) throws EZBComponentException {
        // Existing ?
        if (this.components.containsKey(componentName)) {
            throw new EZBComponentException("Cannot register the component with the name '" + componentName
                    + "'. There is an existing component with this name.");
        }

        this.logger.debug("Registering component with name {0}.", componentName);
        this.components.put(componentName, component);
View Full Code Here

Examples of org.ow2.easybeans.component.api.EZBComponentException

     * @throws EZBComponentException if unregistering fails.
     */
    public void unregister(final String componentName) throws EZBComponentException {
        // Exist ?
        if (!this.components.containsKey(componentName)) {
            throw new EZBComponentException("No component with the name '" + componentName
                    + "' found. Component not unregistered");
        }

        this.logger.info("Unregistering component with name {0}.", componentName);
        this.components.remove(componentName);
View Full Code Here

Examples of org.ow2.easybeans.component.api.EZBComponentException

        }
        // found --> unregister.
        if (name != null) {
            unregister(name);
        }
        throw new EZBComponentException("No component found in the registry with the given component '" + component + "'.");

    }
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.