Package com.yahoo.jdisc.application
Class ServerRepository
java.lang.Object
com.yahoo.jdisc.application.ServerRepository
- All Implemented Interfaces:
Iterable<ServerProvider>
This is a repository of
ServerProvider
s. 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionactivate()
void
install
(ServerProvider server) void
installAll
(Iterable<? extends ServerProvider> servers) installAll
(org.osgi.framework.Bundle bundle, Iterable<String> serverNames) iterator()
void
uninstall
(ServerProvider handler) void
uninstallAll
(Iterable<? extends ServerProvider> handlers) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ServerRepository
-
-
Method Details
-
activate
-
installAll
public List<ServerProvider> installAll(org.osgi.framework.Bundle bundle, Iterable<String> serverNames) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
install
public ServerProvider install(org.osgi.framework.Bundle bundle, String serverName) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
installAll
-
install
-
uninstallAll
-
uninstall
-
collection
-
iterator
- Specified by:
iterator
in interfaceIterable<ServerProvider>
-