module.services( ProjectedDividendsService.class ).instantiateOnStartup();
module.values( DivStream.class, DivPoint.class );
new CxfAssembler().assemble( module );
}
};
final Application application = assembler.application();
Runtime.getRuntime().addShutdownHook( new Thread()
{
@Override
public void run()
{
try
{
application.passivate();
}
catch( Exception e )
{
System.err.println( "Problem shutting down Qi4j" );
e.printStackTrace();