org.mule.registry
Interface Registry

All Known Implementing Classes:
AbstractRegistry

public interface Registry

Author:
Guillaume Nodet

Method Summary
 Assembly addAssembly(String name)
           
 RegistryComponent addComponent(String name, ComponentType type)
           
 Library addLibrary(String name)
           
 RegistryComponent addTransientComponent(String name, ComponentType type, Object component, Object bootstrap)
           
 void addTransientUnit(String suName, RegistryComponent component, String installRoot)
           
 Assembly createAssembly(String name)
           
 RegistryComponent createComponent(String name, ComponentType type)
           
 Library createLibrary(String name)
           
 Unit createUnit(String name)
           
 Assembly[] getAssemblies()
           
 Assembly getAssembly(String name)
           
 RegistryComponent getComponent(String name)
           
 RegistryComponent[] getComponents()
           
 RegistryComponent[] getComponents(ComponentType type)
          Return all engines.
 Library[] getLibraries()
           
 Library getLibrary(String name)
           
 ManagementContext getManagementContext()
           
 String getStoreLocation()
           
 void removeAssembly(Assembly assembly)
           
 void removeComponent(RegistryComponent component)
          Remove a registered component from the list.
 void removeLibrary(Library library)
           
 void save()
           
 void shutDown()
           
 void start()
           
 

Method Detail

getStoreLocation

public String getStoreLocation()

getComponents

public RegistryComponent[] getComponents()

getComponent

public RegistryComponent getComponent(String name)

getManagementContext

public ManagementContext getManagementContext()

addComponent

public RegistryComponent addComponent(String name,
                                      ComponentType type)
                               throws RegistryException
Throws:
RegistryException

removeComponent

public void removeComponent(RegistryComponent component)
Remove a registered component from the list. Internal use only.

Parameters:
component - the component to remove

getComponents

public RegistryComponent[] getComponents(ComponentType type)
Return all engines.

Returns:

addTransientComponent

public RegistryComponent addTransientComponent(String name,
                                               ComponentType type,
                                               Object component,
                                               Object bootstrap)
                                        throws RegistryException
Throws:
RegistryException

getLibraries

public Library[] getLibraries()

getLibrary

public Library getLibrary(String name)

addLibrary

public Library addLibrary(String name)
                   throws RegistryException
Throws:
RegistryException

removeLibrary

public void removeLibrary(Library library)

getAssemblies

public Assembly[] getAssemblies()

getAssembly

public Assembly getAssembly(String name)

addAssembly

public Assembly addAssembly(String name)

removeAssembly

public void removeAssembly(Assembly assembly)

addTransientUnit

public void addTransientUnit(String suName,
                             RegistryComponent component,
                             String installRoot)
                      throws RegistryException
Throws:
RegistryException

start

public void start()
           throws RegistryException
Throws:
RegistryException

shutDown

public void shutDown()
              throws RegistryException
Throws:
RegistryException

save

public void save()
          throws RegistryException
Throws:
RegistryException

createComponent

public RegistryComponent createComponent(String name,
                                         ComponentType type)

createAssembly

public Assembly createAssembly(String name)

createUnit

public Unit createUnit(String name)

createLibrary

public Library createLibrary(String name)


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