summaryrefslogtreecommitdiffstats
path: root/container-jersey2/src/main/java/com/yahoo/container/servlet/jersey/JerseyApplication.java
blob: 4c4e43bc8d5207b2927670fdd65d1715311bd899 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.servlet.jersey;

import javax.ws.rs.core.Application;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

/**
 * @author Tony Vaagenes
 * @author ollivir
 */
public class JerseyApplication extends Application {
    private Set<Class<?>> classes;

    public JerseyApplication(Collection<Class<?>> resourcesAndProviderClasses) {
        this.classes = new HashSet<>(resourcesAndProviderClasses);
    }

    @Override
    public Set<Class<?>> getClasses() {
        return classes;
    }
}