Coverage Report - org.mule.registry.Registry
 
Classes in this File Line Coverage Branch Coverage Complexity
Registry
N/A
N/A
1
 
 1  
 /*
 2  
  * $Id: Registry.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.registry;
 12  
 
 13  
 import org.mule.ManagementContext;
 14  
 
 15  
 /**
 16  
  * @author <a href="mailto:gnt@codehaus.org">Guillaume Nodet</a>
 17  
  */
 18  
 public interface Registry
 19  
 {
 20  
 
 21  
     String getStoreLocation();
 22  
 
 23  
     RegistryComponent[] getComponents();
 24  
 
 25  
     RegistryComponent getComponent(String name);
 26  
 
 27  
     ManagementContext getManagementContext();
 28  
 
 29  
     RegistryComponent addComponent(String name, ComponentType type) throws RegistryException;
 30  
 
 31  
     /**
 32  
      * Remove a registered component from the list. Internal use only.
 33  
      * 
 34  
      * @param component the component to remove
 35  
      */
 36  
     void removeComponent(RegistryComponent component);
 37  
 
 38  
     /**
 39  
      * Return all engines.
 40  
      * 
 41  
      * @return
 42  
      */
 43  
     RegistryComponent[] getComponents(ComponentType type);
 44  
 
 45  
     RegistryComponent addTransientComponent(String name,
 46  
                                             ComponentType type,
 47  
                                             Object component,
 48  
                                             Object bootstrap) throws RegistryException;
 49  
 
 50  
     Library[] getLibraries();
 51  
 
 52  
     Library getLibrary(String name);
 53  
 
 54  
     Library addLibrary(String name) throws RegistryException;
 55  
 
 56  
     void removeLibrary(Library library);
 57  
 
 58  
     Assembly[] getAssemblies();
 59  
 
 60  
     Assembly getAssembly(String name);
 61  
 
 62  
     Assembly addAssembly(String name);
 63  
 
 64  
     void removeAssembly(Assembly assembly);
 65  
 
 66  
     void addTransientUnit(String suName, RegistryComponent component, String installRoot)
 67  
         throws RegistryException;
 68  
 
 69  
     void start() throws RegistryException;
 70  
 
 71  
     void shutDown() throws RegistryException;
 72  
 
 73  
     void save() throws RegistryException;
 74  
 
 75  
     RegistryComponent createComponent(String name, ComponentType type);
 76  
 
 77  
     Assembly createAssembly(String name);
 78  
 
 79  
     Unit createUnit(String name);
 80  
 
 81  
     Library createLibrary(String name);
 82  
 }