de.agilecoders.wicket.webjars
Class WicketWebjars

java.lang.Object
  extended by de.agilecoders.wicket.webjars.WicketWebjars

public final class WicketWebjars
extends Object

Helper class for webjars resources

Author:
miha

Method Summary
static void install(org.apache.wicket.protocol.http.WebApplication app)
          installs the webjars resource finder and uses a set of default settings.
static void install(org.apache.wicket.protocol.http.WebApplication app, IWebjarsSettings settings)
          installs the webjars resource finder
static boolean isInstalled(org.apache.wicket.Application application)
          Checks whether Webjars support is already installed
static IWebjarsSettings settings()
          returns the IWebjarsSettings which are assigned to current application
static IWebjarsSettings settings(org.apache.wicket.Application app)
          returns the IWebjarsSettings which are assigned to given application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isInstalled

public static boolean isInstalled(org.apache.wicket.Application application)
Checks whether Webjars support is already installed

Parameters:
application - the wicket application
Returns:
true if Webjars is already installed, otherwise false

install

public static void install(org.apache.wicket.protocol.http.WebApplication app)
installs the webjars resource finder and uses a set of default settings.

Parameters:
app - the wicket application

install

public static void install(org.apache.wicket.protocol.http.WebApplication app,
                           IWebjarsSettings settings)
installs the webjars resource finder

Parameters:
app - the wicket application
settings - the settings to use

settings

public static IWebjarsSettings settings(org.apache.wicket.Application app)
returns the IWebjarsSettings which are assigned to given application

Parameters:
app - The current application
Returns:
assigned IWebjarsSettings

settings

public static IWebjarsSettings settings()
returns the IWebjarsSettings which are assigned to current application

Returns:
assigned IWebjarsSettings


Copyright © 2016 agilecoders.de. All Rights Reserved.