Package org.apache.wicket.atmosphere

Source Code of org.apache.wicket.atmosphere.JQueryWicketAtmosphereResourceReference

package org.apache.wicket.atmosphere;

import java.util.Arrays;

import org.apache.wicket.markup.head.HeaderItem;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.request.resource.JavaScriptResourceReference;
import org.apache.wicket.resource.JQueryPluginResourceReference;

/**
* Resource reference for the jquery.atmosphere.js module and the wicket glue.
*
* @author papegaaij
*/
public class JQueryWicketAtmosphereResourceReference extends JavaScriptResourceReference
{
  private static final long serialVersionUID = 1L;

  private static final JQueryWicketAtmosphereResourceReference INSTANCE = new JQueryWicketAtmosphereResourceReference();

  /**
   * @return the singleton instance of this resource reference.
   */
  public static JQueryWicketAtmosphereResourceReference get()
  {
    return INSTANCE;
  }

  private JQueryWicketAtmosphereResourceReference()
  {
    super(JQueryWicketAtmosphereResourceReference.class, "jquery.wicketatmosphere.js");
  }

  @Override
  public Iterable<? extends HeaderItem> getDependencies()
  {
    return Arrays.asList(JavaScriptHeaderItem.forReference(new JQueryPluginResourceReference(
      JQueryWicketAtmosphereResourceReference.class, "jquery.atmosphere.js")));
  }
}
TOP

Related Classes of org.apache.wicket.atmosphere.JQueryWicketAtmosphereResourceReference

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.