private Reachable getReachable(Object object) {
    IObjectHandler handler;
    try {

      handler = manager.getHandlerFromObject(object);
      return handler.getFromObject(object).getReachable(object);
    } catch (IReachableHandlerException e) {
      e.printStackTrace();
    }
    return null;
  }
Ejemplo n.º 2
0
 @Override
 public Reachable apply(Object arg0) {
   if (arg0 instanceof Reachable) {
     return (Reachable) arg0;
   }
   try {
     IObjectHandler handler = manager.getHandlerFromObject(arg0);
     ReachableObject obj = handler.getFromObject(arg0);
     if (obj != null) {
       return obj.getReachable(arg0);
     }
   } catch (IReachableHandlerException e) {
     e.printStackTrace();
   }
   return null;
 }