Searched refs:managerClass (Results 1 – 1 of 1) sorted by relevance
50 public static <T> T getManager(@NonNull Class<T> managerClass) { in getManager() argument52 return (T) sManagers.get(managerClass); in getManager()62 public static <T> T getManagerOrThrow(@NonNull Class<T> managerClass) in getManagerOrThrow() argument64 T manager = getManager(managerClass); in getManagerOrThrow()66 throw new ManagerNotFoundException(managerClass); in getManagerOrThrow()78 public static <T> void addManager(@NonNull Class<T> managerClass, @NonNull T manager) { in addManager() argument79 Objects.requireNonNull(managerClass, "managerClass"); in addManager()82 if (sManagers.containsKey(managerClass)) { in addManager()83 throw new IllegalStateException(managerClass.getName() + " is already registered"); in addManager()85 sManagers.put(managerClass, manager); in addManager()[all …]