tyrus
tyrus copied to clipboard
Error in Deployment Algorithm description.
public class MyApplicationConfigOne implements ServerApplicationConfig {
public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> endpointClasses);
Set<Class<? extends Endpoint>> s = new HashSet<Class<? extends Endpoint>>;
s.add(ProgrammaticEndpointOne.class);
return s;
}
public Set<Class> getAnnotatedEndpointClasses(Set<Class<?>> scanned);
Set<Class<?>> s = new HashSet<Class<?>>;
s.add(AnnotatedEndpointOne.class);
return s;
}
}
Set<Class<? extends Endpoint>> is returned instead of Set<ServerEndpointConfig> in getEndpointConfigs
Environment
Tyrus documentation 1.12 https://tyrus.java.net/documentation/1.12/index/deployment.html
Affected Versions
[1.12]
- Issue Imported From: https://github.com/tyrus-project/tyrus/issues/601
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @pavelbucek
@glassfishrobot Commented Reported by pacuk.anton
@glassfishrobot Commented pacuk.anton said: Wrong class name:
If one or more classes implementing ServerApplicationConfiguration are present in the WAR file, Tyrus deploys endpoints provided by all of these classes. Tyrus doesn't deploy any other classes present in the WAR (annotated by javax.websocket.server.ServerEndpoint or extending javax.websocket.Endpoint). If no class implementing ServerApplicationConfiguration is present, Tyrus deploys all classes annotated with @ServerEndpoint or extending Endpoint present in the WAR.
@glassfishrobot Commented This issue was imported from java.net JIRA TYRUS-424