Class DevJavaScriptResourceReference

java.lang.Object
org.apache.wicket.request.resource.ResourceReference
com.inductiveautomation.ignition.gateway.web.util.DevJavaScriptResourceReference
All Implemented Interfaces:
Serializable, org.apache.wicket.util.io.IClusterable

public class DevJavaScriptResourceReference extends org.apache.wicket.request.resource.ResourceReference
Special version of javascript resource reference that understands how to look up javascript files where they will be during development. Requires flag -Dignition.devjsloadpath=<path to IDE repo>
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference

    org.apache.wicket.request.resource.ResourceReference.Key, org.apache.wicket.request.resource.ResourceReference.UrlAttributes
  • Constructor Summary

    Constructors
    Constructor
    Description
    DevJavaScriptResourceReference(Class<?> scope, String modulePath, String name)
     
    DevJavaScriptResourceReference(Class<?> scope, String modulePath, String name, Locale locale, String style, String variation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.wicket.request.resource.IResource
     

    Methods inherited from class org.apache.wicket.request.resource.ResourceReference

    canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DevJavaScriptResourceReference

      public DevJavaScriptResourceReference(Class<?> scope, String modulePath, String name, Locale locale, String style, String variation)
    • DevJavaScriptResourceReference

      public DevJavaScriptResourceReference(Class<?> scope, String modulePath, String name)
      Parameters:
      scope - The class that the js file is near
      modulePath - The module path of where the class is located. Examples: "Platform/gateway-api" or "Modules/reporting/reporting-gateway"
      name - The path to the js file, relative to where the class is
  • Method Details

    • getResource

      public org.apache.wicket.request.resource.IResource getResource()
      Specified by:
      getResource in class org.apache.wicket.request.resource.ResourceReference