public static boolean isInstanceOf ( Object bean , Class < ? > targetType ) { if ( bean == null ) { throw new NullPointerException ( Messages . getString ( "beans.1D" ) ) ; //$NON-NLS-1$ } return targetType == null ? false : targetType . isInstance ( bean ) ; }
Determine if the the specified bean object can be viewed as the specified type .