ServerProviders. The default instance loads
providers at runtime through the Java service provider mechanism.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ServerRegistry.ProviderNotFoundException
Thrown when no suitable |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final LinkedHashSet | |
| private List | effectiveProviders
Immutable, sorted version of |
| private static ServerRegistry | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized void | |
| public synchronized void | deregister(ServerProvider
the provider that was added to the register via provider)register.Deregisters a provider. |
| public static synchronized ServerRegistry | getDefaultRegistry()
Returns the default registry that loads providers via the Java service loader mechanism. |
| pack-priv static List | |
| pack-priv ServerBuilder | |
| pack-priv ServerProvider | |
| pack-priv synchronized List | |
| private synchronized void | |
| public synchronized void |
| allProviders | back to summary |
|---|---|
private final LinkedHashSet<ServerProvider> allProviders
| |
| effectiveProviders | back to summary |
|---|---|
| private List<ServerProvider> effectiveProviders Immutable, sorted version of
| |
| instance | back to summary |
|---|---|
| private static ServerRegistry instance | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| ServerRegistry | back to summary |
|---|---|
| public ServerRegistry() | |
| addProvider | back to summary |
|---|---|
| private synchronized void addProvider(ServerProvider provider) | |
| deregister | back to summary |
|---|---|
| public synchronized void deregister(ServerProvider provider) Deregisters a provider. No-op if the provider is not in the registry.
| |
| getDefaultRegistry | back to summary |
|---|---|
| public static synchronized ServerRegistry getDefaultRegistry() Returns the default registry that loads providers via the Java service loader mechanism. | |
| getHardCodedClasses | back to summary |
|---|---|
pack-priv static List
| |
| newServerBuilderForPort | back to summary |
|---|---|
| pack-priv ServerBuilder | |
| provider | back to summary |
|---|---|
| pack-priv ServerProvider provider() | |
| providers | back to summary |
|---|---|
| pack-priv synchronized List Returns effective providers, in priority order.
| |
| refreshProviders | back to summary |
|---|---|
| private synchronized void refreshProviders() | |
| register | back to summary |
|---|---|
| public synchronized void register(ServerProvider provider) Register a provider. If the provider's Providers will be used in priority order. In case of ties, providers are used in registration order. | |
ServerProvider objects can be found.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ProviderNotFoundException | back to summary |
|---|---|
| public ProviderNotFoundException(String msg) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getPriority(ServerProvider provider)
Implements io. |
| public boolean | isAvailable(ServerProvider provider)
Implements io. |
| ServerPriorityAccessor | back to summary |
|---|---|
| private ServerPriorityAccessor() | |
| getPriority | back to summary |
|---|---|
| public int getPriority(ServerProvider provider) Implements io. Doc from io. A priority, from 0 to 10 that this provider should be used, taking the current environment into consideration. 5 should be considered the default, and then tweaked based on environment detection. A priority of 0 does not imply that the provider wouldn't work; just that it should be last in line.
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable(ServerProvider provider) Implements io. Doc from io. Checks this provider is available for use, taking the current environment into consideration.
If
| |