Class EmbeddedResources


  • public final class EmbeddedResources
    extends AbstractResources
    Java script resources container to reference LUXON as date time library (synchronous mode).
    It has been invoked in order to have an java script injection, needed to CHARBA, where CHART.JS and date library will be load in embedded mode.
    Author:
    Andrea "Stock" Stocchero
    • Field Detail

      • INSTANCE

        public static final EmbeddedResources INSTANCE
        Static reference to LUXON resources which is injecting the LUXON library.
      • INSTANCE_WITHOUT_DATE_LIBRARY

        public static final EmbeddedResources 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 void inject()
        Injects CHART.JS, date adapter and library if not already injected.
        Specified by:
        inject in class AbstractResources