Lines Matching defs:Instance
47 * Static inner class representing a newly created instance.
49 public static final class Instance {
53 private Instance(Provider provider, Object impl) {
152 public static Instance getInstance(String type, Class clazz,
184 public static Instance getInstance(String type, Class clazz,
203 public static Instance getInstance(String type, Class clazz,
209 public static Instance getInstance(String type, Class clazz,
215 public static Instance getInstance(String type, Class clazz,
221 public static Instance getInstance(String type, Class clazz,
234 public static Instance getInstance(Service s, Class clazz)
236 Object instance = s.newInstance(null);
237 checkSuperClass(s, instance.getClass(), clazz);
238 return new Instance(s.getProvider(), instance);
241 public static Instance getInstance(Service s, Class clazz,
243 Object instance = s.newInstance(param);
244 checkSuperClass(s, instance.getClass(), clazz);
245 return new Instance(s.getProvider(), instance);