Package org.hightides.annotations

Examples of org.hightides.annotations.Service


  @SuppressWarnings("unchecked")
  public Map<String, Object> getParameters(Class clazz) {
    Map<String, Object> params = new HashMap<String, Object>();
    Annotation annotation = clazz.getAnnotation(Service.class);
    if (annotation instanceof Service) {
      Service service = (Service) annotation;
      params.put("syncMode", service.synchronizeMode());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
View Full Code Here

TOP

Related Classes of org.hightides.annotations.Service

Copyright © 2018 www.massapicom. 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.