Package org.jrest4guice.dao.actions

Examples of org.jrest4guice.dao.actions.ActionRegister.register()


        ActionRegister register = new ActionRegister();
        for (Class clazz : classes) {
          if (clazz.isAnnotationPresent(Dao.class)) {
            binder.bind(clazz).toProvider(DaoProvider.create(clazz));
          } else if (Action.class.isAssignableFrom(clazz)) {
            register.register(clazz);
          }
        }
        binder.bind(ActionRegister.class).toInstance(register);
      }
    });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.