/** * Invoked from {@link #init(ServletConfig)}, after the registry has been constructed, to * bootstrap the application via the <code>tapestry.MasterApplicationInitializer</code> * service. * * @since 4.0 */ protected void initializeApplication() { ApplicationInitializer ai = (ApplicationInitializer) _registry.getService( "tapestry.init.MasterInitializer", ApplicationInitializer.class); ai.initialize(this); _registry.cleanupThread(); _requestServicer = (ServletRequestServicer) _registry.getService( "tapestry.request.ServletRequestServicer", ServletRequestServicer.class); }
/** * Invoked from {@link #init(ServletConfig)}, after the registry has been constructed, to * bootstrap the application via the <code>tapestry.MasterApplicationInitializer</code> * service. * * @since 4.0 */ protected void initializeApplication() { ApplicationInitializer ai = (ApplicationInitializer) _registry.getService( "tapestry.init.MasterInitializer", ApplicationInitializer.class); ai.initialize(this); _registry.cleanupThread(); _requestServicer = (ServletRequestServicer) _registry.getService( "tapestry.request.ServletRequestServicer", ServletRequestServicer.class); }
component = registry.getService((String)key, Object.class); logger.debug("Called " + key + " obtained " + component.getClass().getName()); component = registry.getService((Class)key); logger.debug("Called " + ((Class)key).getName() + " obtained " + component.getClass().getName());