Package org.wicketstuff.offline.mode
Class ServiceWorkerRegistration
- java.lang.Object
-
- org.apache.wicket.request.resource.ResourceReference
-
- org.apache.wicket.request.resource.PackageResourceReference
-
- org.apache.wicket.request.resource.JavaScriptResourceReference
-
- org.wicketstuff.offline.mode.ServiceWorkerRegistration
-
- All Implemented Interfaces:
Serializable,IClusterable
public class ServiceWorkerRegistration extends JavaScriptResourceReference
The registration is going to initialize the service worker on client side.- Author:
- Tobias Soloschenko
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference
ResourceReference.Key, ResourceReference.LambdaResourceReference, ResourceReference.UrlAttributes
-
-
Constructor Summary
Constructors Constructor Description ServiceWorkerRegistration()Creates a new service worker registration
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceWorkerRegistrationgetInstance()Gets the current service worker registration instanceJavaScriptPackageResourcegetResource()Override getResource() because it has be ensured that there is no cache applied to the resource-
Methods inherited from class org.apache.wicket.request.resource.PackageResourceReference
getMinifiedName, getUrlAttributes, readBuffered, removeCompressFlagIfUnnecessary
-
Methods inherited from class org.apache.wicket.request.resource.ResourceReference
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getVariation, hashCode, of, of, toString
-
-
-
-
Method Detail
-
getInstance
public static ServiceWorkerRegistration getInstance()
Gets the current service worker registration instance- Returns:
- the current service worker registration instance
-
getResource
public JavaScriptPackageResource getResource()
Override getResource() because it has be ensured that there is no cache applied to the resource- Overrides:
getResourcein classJavaScriptResourceReference
-
-