public class ServerRepository extends Object implements Iterable<ServerProvider>
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
.Modifier and Type | Field and Description |
---|---|
private GuiceRepository |
guice |
private static Logger |
log |
private List<ServerProvider> |
servers |
Constructor and Description |
---|
ServerRepository(GuiceRepository guice) |
Modifier and Type | Method and Description |
---|---|
Iterable<ServerProvider> |
activate() |
Collection<ServerProvider> |
collection() |
ServerProvider |
install(org.osgi.framework.Bundle bundle,
String serverName) |
void |
install(ServerProvider server) |
List<ServerProvider> |
installAll(org.osgi.framework.Bundle bundle,
Iterable<String> serverNames) |
void |
installAll(Iterable<? extends ServerProvider> servers) |
Iterator<ServerProvider> |
iterator() |
void |
uninstall(ServerProvider handler) |
void |
uninstallAll(Iterable<? extends ServerProvider> handlers) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
private static final Logger log
private final List<ServerProvider> servers
private final GuiceRepository guice
public ServerRepository(GuiceRepository guice)
public Iterable<ServerProvider> activate()
public List<ServerProvider> installAll(org.osgi.framework.Bundle bundle, Iterable<String> serverNames) throws ClassNotFoundException
ClassNotFoundException
public ServerProvider install(org.osgi.framework.Bundle bundle, String serverName) throws ClassNotFoundException
ClassNotFoundException
public void installAll(Iterable<? extends ServerProvider> servers)
public void install(ServerProvider server)
public void uninstallAll(Iterable<? extends ServerProvider> handlers)
public void uninstall(ServerProvider handler)
public Collection<ServerProvider> collection()
public Iterator<ServerProvider> iterator()
iterator
in interface Iterable<ServerProvider>
Copyright © 2017. All rights reserved.