Package net.japko.bank

Source Code of net.japko.bank.BankApplication

package net.japko.bank;

import net.japko.rest.Hello;
import net.japko.rest.TotalBalance;

import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;

public class BankApplication extends Application {

    private Set<Object> singletons = new HashSet();
    private Set<Class<?>> empty = new HashSet();

    public BankApplication() {
        // ADD YOUR RESTFUL RESOURCES HERE
        this.singletons.add(new Hello());
        this.singletons.add(new TotalBalance());
    }

    public Set<Class<?>> getClasses() {
        return this.empty;
    }

    public Set<Object> getSingletons() {
        return this.singletons;
    }


}
TOP

Related Classes of net.japko.bank.BankApplication

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.