Package restx.log.admin

Source Code of restx.log.admin.LogAdminModule

package restx.log.admin;

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;

/**
* Date: 17/11/13
* Time: 10:20
*/
@Module
public class LogAdminModule {
    @Provides
    @Named("Log")
    public AdminPage getLogAdminPage() {
        return new AdminPage("/@/ui/log/", "Logs");
    }

    @Provides @Named("LogUIRoute")
    public ResourcesRoute getLogResourcesRoute() {
        return new ResourcesRoute("LogUIRoute", "/@/ui/log", "restx/log", ImmutableMap.of("", "index.html"));
    }
}
TOP

Related Classes of restx.log.admin.LogAdminModule

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.