public static < T extends Kernel > T sharedKernelInstance ( Class < T > kernelClass ) { return instance ( ) . getSharedKernelInstance ( kernelClass ) ; }
This method returns a shared instance of a given Kernel subclass . The kernelClass needs a no - args constructor which need not be public .