eclipse-ee4j / tyrus

Tyrus
Other
115 stars 37 forks source link

Error in Deployment Algorithm description. #601

Open glassfishrobot opened 8 years ago

glassfishrobot commented 8 years ago
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 in getEndpointConfigs

Environment

Tyrus documentation 1.12 https://tyrus.java.net/documentation/1.12/index/deployment.html

Affected Versions

[1.12]

glassfishrobot commented 6 years ago
glassfishrobot commented 8 years ago

@glassfishrobot Commented Reported by pacuk.anton

glassfishrobot commented 8 years ago

@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 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA TYRUS-424