Coverage Report - org.mule.registry.DefaultRegistryBroker
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultRegistryBroker
0%
0/11
N/A
0
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.registry;
 8  
 
 9  
 import org.mule.api.MuleContext;
 10  
 import org.mule.api.registry.Registry;
 11  
 
 12  
 import java.util.ArrayList;
 13  
 import java.util.Collection;
 14  
 import java.util.List;
 15  
 
 16  
 public class DefaultRegistryBroker extends AbstractRegistryBroker
 17  
 {
 18  
     private TransientRegistry transientRegistry;
 19  0
     private List<Registry> registries = new ArrayList<Registry>();
 20  
 
 21  
     public DefaultRegistryBroker(MuleContext context)
 22  
     {
 23  0
         super(context);
 24  0
         transientRegistry = new TransientRegistry(context);
 25  0
         registries.add(0, transientRegistry);
 26  0
     }
 27  
 
 28  
     TransientRegistry getTransientRegistry()
 29  
     {
 30  0
         return transientRegistry;
 31  
     }
 32  
 
 33  
     public void addRegistry(Registry registry)
 34  
     {
 35  0
         registries.add(1, registry);
 36  0
     }
 37  
 
 38  
     public void removeRegistry(Registry registry)
 39  
     {
 40  0
         registries.remove(registry);
 41  0
     }
 42  
 
 43  
     protected Collection<Registry> getRegistries()
 44  
     {
 45  0
         return registries;
 46  
     }
 47  
 }