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
The registration is going to initialize the service worker on client side.
- Author:
- Tobias Soloschenko
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference
ResourceReference.Key, ResourceReference.LambdaResourceReference, ResourceReference.UrlAttributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceWorkerRegistrationGets the current service worker registration instanceOverride getResource() because it has be ensured that there is no cache applied to the resourceMethods inherited from class org.apache.wicket.request.resource.PackageResourceReference
getMinifiedName, getUrlAttributes, readBuffered, removeCompressFlagIfUnnecessaryMethods inherited from class org.apache.wicket.request.resource.ResourceReference
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getVariation, hashCode, of, of, toString
-
Constructor Details
-
ServiceWorkerRegistration
public ServiceWorkerRegistration()Creates a new service worker registration
-
-
Method Details
-
getInstance
Gets the current service worker registration instance- Returns:
- the current service worker registration instance
-
getResource
Override getResource() because it has be ensured that there is no cache applied to the resource- Overrides:
getResourcein classJavaScriptResourceReference
-