/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
/**
* Each module of an application has an associated module info instance keeping
* the list of engines in which that module is loaded.
*
* @author Jerome Dochez
*/
public class ModuleInfo {
final protected Map<Class<? extends Object>, Object> metaData = new HashMap<Class<? extends Object>, Object>();
private boolean started=false;
}
this.moduleProps = moduleProps;
}
return copy;
}
return engines;
}
return classLoaders;
}
public void cleanClassLoaders() {
classLoaders = null;
}
}
}
return name;
}
return props;
}
/**
* Returns the list of sniffers that participated in loaded this
* application
*
* @return array of sniffer that loaded the application's module
*/
}
return sniffers;
}
}
try {
}
// get the container.
try {
continue;
}
} catch(Exception e) {
throw e;
}
}
}
}
}
}
} finally {
}
}
/*
* Returns the EngineRef for a particular container type
* @param type the container type
* @return the module info is this application as a module implemented with
* the passed container type
*/
try {
} catch (Exception e) {
// ignore, wrong container
}
return engine;
}
}
return null;
}
public synchronized void start(
if (started)
return;
try {
// registers all deployed items.
}
}
try {
}
} catch(Exception e) {
logger.log(Level.SEVERE, "Exception while invoking " + engine.getApplicationContainer().getClass() + " start method", e);
throw e;
}
}
}
started=true;
}
} finally {
}
}
if (!started)
return;
try {
try {
} catch(Exception e) {
}
}
started=false;
}
} finally {
}
}
try {
if (engine.getApplicationContainer()!=null && engine.getApplicationContainer().getClassLoader()!=null) {
try {
} catch(Throwable e) {
}
}
}
// add the module classloader to the predestroy list if it's not
// already there
}
}
} finally {
}
}
}
}
}
boolean isSuccess = true;
try {
} catch(Exception e) {
isSuccess = false;
}
}
return isSuccess;
}
boolean isSuccess = true;
try {
} catch(Exception e) {
isSuccess = false;
}
}
return isSuccess;
}
/**
* Saves its state to the configuration. this method must be called within a transaction
* to the configured module instance.
*
* @param module the module being persisted
*/
// write out the module properties only for composite app
ServerTags.IS_COMPOSITE))) {
}
}
}
}
}