Examples of WebappSource


Examples of org.onebusaway.presentation.services.resources.WebappSource

    List<ResourcePrototypeImpl> resources = new ArrayList<ResourcePrototypeImpl>();

    for (Method method : bundleType.getMethods()) {

      String methodName = method.getName();
      WebappSource source = method.getAnnotation(WebappSource.class);

      if (source == null) {
        _log.warn("no Resource annotation found: " + methodName);
        continue;
      }

      String[] values = source.value();
      if (values == null || values.length != 1)
        throw new IllegalStateException("@WebappSource has no value: "
            + bundleType.getName() + "#" + methodName);

      String resourceName = values[0];
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.