public class TyrusServerConfiguration extends Object implements ServerApplicationConfig
ServerApplicationConfigs, if any, or deployed classes.| Constructor and Description |
|---|
TyrusServerConfiguration(Set<Class<?>> classes,
Set<Class<?>> dynamicallyAddedClasses,
Set<ServerEndpointConfig> serverEndpointConfigs,
org.glassfish.tyrus.core.ErrorCollector errorCollector)
Create new
TyrusServerConfiguration. |
TyrusServerConfiguration(Set<Class<?>> classes,
Set<ServerEndpointConfig> serverEndpointConfigs)
Create new
TyrusServerConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getAnnotatedEndpointClasses(Set<Class<?>> scanned)
Gets all the classes annotated with
ServerEndpoint annotation which should be deployed. |
Set<ServerEndpointConfig> |
getEndpointConfigs(Set<Class<? extends Endpoint>> scanned)
Gets all the
ServerEndpointConfig classes which should be deployed. |
public TyrusServerConfiguration(Set<Class<?>> classes, 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.IllegalArgumentException - when any of the arguments is null.public TyrusServerConfiguration(Set<Class<?>> classes, Set<Class<?>> dynamicallyAddedClasses, Set<ServerEndpointConfig> serverEndpointConfigs, org.glassfish.tyrus.core.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.IllegalArgumentException - when any of the arguments is null.public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> scanned)
ServerEndpointConfig classes which should be deployed.getEndpointConfigs in interface ServerApplicationConfigscanned - is unused.ServerEndpointConfig classes which should be deployed.public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned)
ServerEndpoint annotation which should be deployed.getAnnotatedEndpointClasses in interface ServerApplicationConfigscanned - is unused.ServerEndpoint annotation which should be deployed.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.