Commit e7126f26 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added #getComponents() to get list of installed components. JM-824

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5373 b35dd754-fafc-0310-a699-88a17e54d16e
parent 81fcb9f7
...@@ -27,6 +27,8 @@ import org.xmpp.packet.JID; ...@@ -27,6 +27,8 @@ import org.xmpp.packet.JID;
import org.xmpp.packet.Packet; import org.xmpp.packet.Packet;
import org.xmpp.packet.Presence; import org.xmpp.packet.Presence;
import java.util.Collection;
import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
...@@ -264,6 +266,16 @@ public class InternalComponentManager implements ComponentManager, RoutableChann ...@@ -264,6 +266,16 @@ public class InternalComponentManager implements ComponentManager, RoutableChann
}; };
} }
/**
* Returns the list of components that are currently installed in the server.
* This includes internal and external components.
*
* @return the list of installed components.
*/
public Collection<Component> getComponents() {
return Collections.unmodifiableCollection(components.values());
}
/** /**
* Retrieves the <code>Component</code> which is mapped * Retrieves the <code>Component</code> which is mapped
* to the specified JID. * to the specified JID.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment