@ SuppressWarnings ( "unchecked" ) // public static < T > T getDaggerComponent ( Context context ) { //noinspection ResourceType return ( T ) context . getSystemService ( SERVICE_NAME ) ; }
Caller is required to know the type of the component for this context .