All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.registry.Unit Maven / Gradle / Ivy

The newest version!
/*
 * $Id: Unit.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.registry;

/**
 * @author Guillaume Nodet
 */
public interface Unit extends Entry
{

    void init() throws RegistryException;

    /**
     * Start the item.
     * 
     * @exception RegistryException if the item fails to start.
     */
    void start() throws RegistryException;

    /**
     * Stop the item. This suspends current messaging activities.
     * 
     * @exception RegistryException if the item fails to stop.
     */
    void stop() throws RegistryException;

    /**
     * Shut down the item. The releases resources, preparatory to uninstallation.
     * 
     * @exception RegistryException
     */
    void shutDown() throws RegistryException;

    RegistryComponent getRegistryComponent();

    void setRegistryComponent(RegistryComponent component);

    Assembly getAssembly();

    void setAssembly(Assembly assembly);

    String deploy() throws RegistryException;

    String undeploy() throws RegistryException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy