// classloader visibility into the Web module in J2EE environments
appClass = (Class<? extends Application>)ClassUtils.loadClass(initParameter);
// let the lifecycle manager create the instance and process fields
// for injection
ObjectFactory of = configuration.getOfFactoryRegistry().getObjectFactory(appClass);
configuration.addApplicationObjectFactory(of);
return (Application)of.getInstance(null);
}
String appLocationParameter = getInitParameter(APP_LOCATION_PARAM);
if (appLocationParameter == null) {
if (logger.isWarnEnabled()) {
logger.warn(Messages.getMessage("propertyNotDefined", APP_LOCATION_PARAM)); //$NON-NLS-1$