All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.beigesoft.ajetty.FactoryAppBeansEmbedded Maven / Gradle / Ivy

Go to download

A-Jetty Base can run on Android Java as well as on standard Java 7+ and it can run precompiled JSP/JSTL.

There is a newer version: 1.0.5
Show newest version
package org.beigesoft.ajetty;

/*
 * Beigesoft ™
 *
 * Licensed under the Apache License, Version 2.0
 *
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 */

import org.beigesoft.afactory.IFactoryAppBeans;

/**
 * 

Factory app-beans for standart Java.

* * @author Yury Demidenko */ public class FactoryAppBeansEmbedded implements IFactoryAppBeans { /** *

Factory WebAppClassLoaderEmbedded.

**/ private FactoryWebAppClassLoaderEmbedded factoryWebAppClassLoaderEmbedded; /** *

Get bean in lazy mode (if bean is null then initialize it).

* @param pBeanName - bean name * @return Object - requested bean * @throws Exception - an exception */ @Override public final synchronized Object lazyGet( final String pBeanName) throws Exception { if ("IFactoryParam" .equals(pBeanName)) { return lazyGetFactoryWebAppClassLoaderEmbedded(); } throw new Exception("There is no bean: " + pBeanName); } /** *

Getter for factoryWebAppClassLoaderEmbedded.

* @return FactoryWebAppClassLoaderEmbedded **/ public final FactoryWebAppClassLoaderEmbedded lazyGetFactoryWebAppClassLoaderEmbedded() { if (this.factoryWebAppClassLoaderEmbedded == null) { this.factoryWebAppClassLoaderEmbedded = new FactoryWebAppClassLoaderEmbedded(); } return this.factoryWebAppClassLoaderEmbedded; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy