List of usage examples for android.app Service getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:com.nick.scalpel.Scalpel.java
public void wire(Service service, Scope scope) { if (isInScope(scope, Scope.Class)) wireClz(service);//from w w w.j a va2 s . c o m if (isInScope(scope, Scope.Field)) { Class clz = service.getClass(); for (Field field : clz.getDeclaredFields()) { for (FieldWirer wirer : mFieldWirers) { if (field.isAnnotationPresent(wirer.annotationClass())) { wirer.wire(service, field); } } } } }