Esempio n. 1
0
 /** Determines if the default service has been registered in the service infrastructure */
 public static Read<?> get(Class<?> owner) {
   Read<?> read = (Read<?>) ServiceCore.get(owner, Read.class);
   if (read == null) {
     ReadWrapper rw = new ReadWrapper(owner);
     if (rw.available()) {
       set(owner, rw);
       read = rw;
     }
   }
   return read;
 }
Esempio n. 2
0
 public static boolean set(Class<?> owner, Read<?> service) {
   return ServiceCore.set(owner, Read.class, service);
 }