org.mule.registry
Interface Unit

All Superinterfaces:
Entry
All Known Implementing Classes:
AbstractUnit

public interface Unit
extends Entry

Author:
Guillaume Nodet

Field Summary
 
Fields inherited from interface org.mule.registry.Entry
INITIALIZED, RUNNING, SHUTDOWN, STOPPED, UNKNOWN
 
Method Summary
 String deploy()
           
 Assembly getAssembly()
           
 RegistryComponent getRegistryComponent()
           
 void init()
           
 void setAssembly(Assembly assembly)
           
 void setRegistryComponent(RegistryComponent component)
           
 void shutDown()
          Shut down the item.
 void start()
          Start the item.
 void stop()
          Stop the item.
 String undeploy()
           
 
Methods inherited from interface org.mule.registry.Entry
getCurrentState, getInstallRoot, getName, getStateAtShutdown, setCurrentState, setInstallRoot, setName, setStateAtShutdown
 

Method Detail

init

public void init()
          throws RegistryException
Throws:
RegistryException

start

public void start()
           throws RegistryException
Start the item.

Throws:
RegistryException - if the item fails to start.

stop

public void stop()
          throws RegistryException
Stop the item. This suspends current messaging activities.

Throws:
RegistryException - if the item fails to stop.

shutDown

public void shutDown()
              throws RegistryException
Shut down the item. The releases resources, preparatory to uninstallation.

Throws:
RegistryException

getRegistryComponent

public RegistryComponent getRegistryComponent()

setRegistryComponent

public void setRegistryComponent(RegistryComponent component)

getAssembly

public Assembly getAssembly()

setAssembly

public void setAssembly(Assembly assembly)

deploy

public String deploy()
              throws RegistryException
Throws:
RegistryException

undeploy

public String undeploy()
                throws RegistryException
Throws:
RegistryException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.