org.mule.registry.DefaultRegistryBroker Maven / Gradle / Ivy
/*
* $Id: DefaultRegistryBroker.java 21417 2011-03-02 18:54:39Z dzapata $
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.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;
import org.mule.api.MuleContext;
import org.mule.api.registry.Registry;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class DefaultRegistryBroker extends AbstractRegistryBroker
{
private TransientRegistry transientRegistry;
private List registries = new ArrayList();
public DefaultRegistryBroker(MuleContext context)
{
super(context);
transientRegistry = new TransientRegistry(context);
registries.add(0, transientRegistry);
}
TransientRegistry getTransientRegistry()
{
return transientRegistry;
}
public void addRegistry(Registry registry)
{
registries.add(1, registry);
}
public void removeRegistry(Registry registry)
{
registries.remove(registry);
}
protected Collection getRegistries()
{
return registries;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy