@ SuppressWarnings ( { "unchecked" } ) public < T > T getBean ( final Class < T > type ) { String name = resolveBeanName ( type ) ; return ( T ) getBean ( name ) ; }
Returns Petite bean instance . Bean name will be resolved from provided type .