public static ServletContainer defaultContainer ( ) { if ( container != null ) { return container ; } synchronized ( Servlets . class ) { if ( container != null ) { return container ; } return container = ServletContainer . Factory . newInstance ( ) ; } }
Returns the default servlet container . For most embedded use cases this will be sufficient .