Class ZoneResources

java.lang.Object
dev.gmitch215.bytebox.time.ZoneResources
All Implemented Interfaces:
org.teavm.extension.spi.resources.ResourcesPolicy

public final class ZoneResources extends Object implements org.teavm.extension.spi.resources.ResourcesPolicy
Copies the timezone database into the module when ZoneHistory is in the program, and only then.

Found through META-INF/services, like the substitution policies. The compiler hands a resources policy the names of the classes the program kept, so a program that never links ZoneHistory gets no 108 KB data segment.

Since:
1.0.3
  • Constructor Details

    • ZoneResources

      public ZoneResources()
  • Method Details

    • supplyResources

      public String[] supplyResources(Collection<? extends String> availableClassNames)
      Specified by:
      supplyResources in interface org.teavm.extension.spi.resources.ResourcesPolicy