Class DevJavaScriptResourceReference

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • 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​(java.lang.Class<?> scope, java.lang.String modulePath, java.lang.String name)  
      DevJavaScriptResourceReference​(java.lang.Class<?> scope, java.lang.String modulePath, java.lang.String name, java.util.Locale locale, java.lang.String style, java.lang.String variation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.wicket.request.resource.IResource getResource()  
      • 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 Detail

      • DevJavaScriptResourceReference

        public DevJavaScriptResourceReference​(java.lang.Class<?> scope,
                                              java.lang.String modulePath,
                                              java.lang.String name,
                                              java.util.Locale locale,
                                              java.lang.String style,
                                              java.lang.String variation)
      • DevJavaScriptResourceReference

        public DevJavaScriptResourceReference​(java.lang.Class<?> scope,
                                              java.lang.String modulePath,
                                              java.lang.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 Detail

      • getResource

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