public synchronized static < T > T get ( Class < T > cType ) { if ( map . get ( cType ) != null ) { return cType . cast ( map . get ( cType ) ) ; } try { Object obj = cType . newInstance ( ) ; log . debug ( "[CREATE INSTANCE] : " + cType . getSimpleName ( ) ) ; map . put ( cType , obj ) ; return cType . cast ( obj ) ; } catch ( InstantiationException | IllegalAccessException e ) { log . debug ( e . getMessage ( ) ) ; } return null ; }
Get t .