Search in sources :

Example 1 with PlatformBootstrap

use of com.canoo.dp.impl.server.bootstrap.PlatformBootstrap in project dolphin-platform by canoo.

the class DolphinPlatformJavaeeBootstrap method onStartup.

@Override
public void onStartup(final Set<Class<?>> c, final ServletContext servletContext) throws ServletException {
    final ServerConfiguration configuration = ConfigurationFileLoader.loadConfiguration();
    final PlatformBootstrap bootstrap = new PlatformBootstrap();
    bootstrap.init(servletContext, configuration);
}
Also used : ServerConfiguration(com.canoo.dp.impl.server.config.ServerConfiguration) PlatformBootstrap(com.canoo.dp.impl.server.bootstrap.PlatformBootstrap)

Example 2 with PlatformBootstrap

use of com.canoo.dp.impl.server.bootstrap.PlatformBootstrap in project dolphin-platform by canoo.

the class DolphinPlatformSpringBootstrap method onStartup.

@Override
public void onStartup(final ServletContext servletContext) throws ServletException {
    final ServerConfiguration configuration = Optional.ofNullable(injectedConfig).orElse(ConfigurationFileLoader.loadConfiguration());
    updateConfigurationBySpring(configuration);
    final PlatformBootstrap bootstrap = new PlatformBootstrap();
    bootstrap.init(servletContext, configuration);
}
Also used : ServerConfiguration(com.canoo.dp.impl.server.config.ServerConfiguration) PlatformBootstrap(com.canoo.dp.impl.server.bootstrap.PlatformBootstrap)

Aggregations

PlatformBootstrap (com.canoo.dp.impl.server.bootstrap.PlatformBootstrap)2 ServerConfiguration (com.canoo.dp.impl.server.config.ServerConfiguration)2