Package com.yahoo.jdisc.application
Class ServerRepository
- java.lang.Object
-
- com.yahoo.jdisc.application.ServerRepository
-
- All Implemented Interfaces:
java.lang.Iterable<ServerProvider>
public class ServerRepository extends java.lang.Object implements java.lang.Iterable<ServerProvider>
This is a repository ofServerProvider
s. An instance of this class is owned by theContainerBuilder
, and is used to configure the set of ServerProviders that eventually become part of the activeContainer
.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description ServerRepository(GuiceRepository guice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<ServerProvider>
activate()
java.util.Collection<ServerProvider>
collection()
void
install(ServerProvider server)
ServerProvider
install(org.osgi.framework.Bundle bundle, java.lang.String serverName)
void
installAll(java.lang.Iterable<? extends ServerProvider> servers)
java.util.List<ServerProvider>
installAll(org.osgi.framework.Bundle bundle, java.lang.Iterable<java.lang.String> serverNames)
java.util.Iterator<ServerProvider>
iterator()
void
uninstall(ServerProvider handler)
void
uninstallAll(java.lang.Iterable<? extends ServerProvider> handlers)
-
-
-
Constructor Detail
-
ServerRepository
public ServerRepository(GuiceRepository guice)
-
-
Method Detail
-
activate
public java.lang.Iterable<ServerProvider> activate()
-
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)
-
install
public void install(ServerProvider server)
-
uninstallAll
public void uninstallAll(java.lang.Iterable<? extends ServerProvider> handlers)
-
uninstall
public void uninstall(ServerProvider handler)
-
collection
public java.util.Collection<ServerProvider> collection()
-
iterator
public java.util.Iterator<ServerProvider> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ServerProvider>
-
-