public class TyrusServerConfiguration extends java.lang.Object implements ServerApplicationConfig
ServerApplicationConfig
s, if any, or deployed classes.Constructor and Description |
---|
TyrusServerConfiguration(java.util.Set<java.lang.Class<?>> classes,
java.util.Set<java.lang.Class<?>> dynamicallyAddedClasses,
java.util.Set<ServerEndpointConfig> serverEndpointConfigs,
ErrorCollector errorCollector)
Create new
TyrusServerConfiguration . |
TyrusServerConfiguration(java.util.Set<java.lang.Class<?>> classes,
java.util.Set<ServerEndpointConfig> serverEndpointConfigs)
Create new
TyrusServerConfiguration . |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.Class<?>> |
getAnnotatedEndpointClasses(java.util.Set<java.lang.Class<?>> scanned)
Gets all the classes annotated with
ServerEndpoint annotation which should be deployed. |
java.util.Set<ServerEndpointConfig> |
getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> scanned)
Gets all the
ServerEndpointConfig classes which should be deployed. |
public TyrusServerConfiguration(java.util.Set<java.lang.Class<?>> classes, java.util.Set<ServerEndpointConfig> serverEndpointConfigs)
TyrusServerConfiguration
.classes
- classes to be included in this application instance. Can contain any combination of
annotated endpoints (see ServerEndpoint
). Cannot be null
.serverEndpointConfigs
- List of instances of ServerEndpointConfig
to be deployed.java.lang.IllegalArgumentException
- when any of the arguments is null
.public TyrusServerConfiguration(java.util.Set<java.lang.Class<?>> classes, java.util.Set<java.lang.Class<?>> dynamicallyAddedClasses, java.util.Set<ServerEndpointConfig> serverEndpointConfigs, ErrorCollector errorCollector)
TyrusServerConfiguration
.classes
- classes to be included in this application instance. Can contain any combination
of annotated endpoints (see ServerEndpoint
).dynamicallyAddedClasses
- dynamically deployed classes. See .ServerContainer#addEndpoint(Class)
.serverEndpointConfigs
- List of instances of ServerEndpointConfig
to be deployed.errorCollector
- model errors are reported to this instance. Cannot be null
.java.lang.IllegalArgumentException
- when any of the arguments is null
.public java.util.Set<ServerEndpointConfig> getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> scanned)
ServerEndpointConfig
classes which should be deployed.getEndpointConfigs
in interface ServerApplicationConfig
scanned
- is unused.ServerEndpointConfig
classes which should be deployed.public java.util.Set<java.lang.Class<?>> getAnnotatedEndpointClasses(java.util.Set<java.lang.Class<?>> scanned)
ServerEndpoint
annotation which should be deployed.getAnnotatedEndpointClasses
in interface ServerApplicationConfig
scanned
- is unused.ServerEndpoint
annotation which should be deployed.Copyright © 2012–2020 Oracle Corporation. All rights reserved.