Package restx.stats

Source Code of restx.stats.StatsAdminModule

package restx.stats;

import com.google.common.collect.ImmutableMap;
import restx.ResourcesRoute;
import restx.admin.AdminPage;
import restx.factory.Module;
import restx.factory.Provides;

import javax.inject.Named;

@Module
public class StatsAdminModule {
    @Provides
        @Named("Stats")
    public AdminPage getStatsAdminPage() {
        return new AdminPage("/@/ui/stats/", "Stats");
    }

    @Provides @Named("StatsUIRoute")
    public ResourcesRoute getStatsResourcesRoute() {
        return new ResourcesRoute("StatsUIRoute", "/@/ui/stats", "restx/stats/ui", ImmutableMap.of("", "index.html"));
    }
}
TOP

Related Classes of restx.stats.StatsAdminModule

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.