Class ServerRepository

  • All Implemented Interfaces:
    java.lang.Iterable<ServerProvider>

    public class ServerRepository
    extends java.lang.Object
    implements java.lang.Iterable<ServerProvider>
    This is a repository of ServerProviders. An instance of this class is owned by the ContainerBuilder, and is used to configure the set of ServerProviders that eventually become part of the active Container.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

    • Method Detail

      • installAll

        public java.util.List<ServerProvider> installAll​(org.osgi.framework.Bundle bundle,
                                                         java.lang.Iterable<java.lang.String> serverNames)
                                                  throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • install

        public ServerProvider install​(org.osgi.framework.Bundle bundle,
                                      java.lang.String serverName)
                               throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException
      • installAll

        public void installAll​(java.lang.Iterable<? extends ServerProvider> servers)
      • uninstallAll

        public void uninstallAll​(java.lang.Iterable<? extends ServerProvider> handlers)
      • collection

        public java.util.Collection<ServerProvider> collection()