Class DeferredResources
- java.lang.Object
-
- org.pepstock.charba.client.resources.AbstractResources
-
- org.pepstock.charba.client.resources.DeferredResources
-
public final class DeferredResources extends AbstractResources
Client bundle to reference LUXON as date time library (asynchronous mode).
It has been invoked in order to have a resource client bundle, needed to CHARBA, where CHART.JS and date library must be load in deferred mode.- Author:
- Andrea "Stock" Stocchero
-
-
Field Summary
Fields Modifier and Type Field Description static DeferredResources
INSTANCE
Static reference to LUXON resources which is injecting the LUXON library.static DeferredResources
INSTANCE_WITHOUT_DATE_LIBRARY
Static reference to LUXON resources which is NOT injecting the LUXON library, because LUXON date library could be used in other libraries and to avoid to inject the library more than once.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inject()
Checks if the module has been injected byEntryPointStarter
.
-
-
-
Field Detail
-
INSTANCE
public static final DeferredResources INSTANCE
Static reference to LUXON resources which is injecting the LUXON library.
-
INSTANCE_WITHOUT_DATE_LIBRARY
public static final DeferredResources INSTANCE_WITHOUT_DATE_LIBRARY
Static reference to LUXON resources which is NOT injecting the LUXON library, because LUXON date library could be used in other libraries and to avoid to inject the library more than once.
-
-
Method Detail
-
inject
public final void inject()
Checks if the module has been injected byEntryPointStarter
. if not, throw aUnsupportedOperationException
.- Specified by:
inject
in classAbstractResources
-
-