org.beigesoft.android.ajetty.ApplicationPlus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of a-jetty Show documentation
Show all versions of a-jetty Show documentation
A-Jetty for Android. It is Jetty 9.2 adapted for Android
configured as minimum server with WebAppDeployer that can deploy ordinal WAR (JSP/JSTL must be pre-compiled into servlets by A-Tomcat).
It's only for tests purposes. It doesn't comply to the latest Android policy (loading executable binaries from outside)!
package org.beigesoft.android.ajetty;
/*
* Copyright (c) 2016 Beigesoft ™
*
* Licensed under the GNU General Public License (GPL), Version 2.0
* (the "License");
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
*
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
*/
import java.util.HashMap;
import java.util.Map;
import android.app.Application;
/**
* It extends Application to contains application beans map.
*
* @author Yury Demidenko
*/
public class ApplicationPlus extends Application {
/**
* Application beans map.
**/
private final Map beansMap = new HashMap();
/**
* Shared services
* (do not hold medium and big data in it!!!
* Use a data storage(SQL, a file...) to hold that data!)
* @return a service
*/
public final Map getBeansMap() {
return this.beansMap;
}
}