Class Sources

java.lang.Object
org.applecommander.source.Sources

public class Sources extends Object
Sources is a hook into the Source discovery and construction logic.
  • Constructor Details

    • Sources

      public Sources()
  • Method Details

    • setFactories

      public static void setFactories(Source.Factory... factories)
      This call is a shim for the AntTask to populate its known factories since ServiceLoader doesn't appear to work within the Ant classpath.
    • create

      public static Optional<Source> create(Object object)
      Standardized Source creation. Uses the ServiceLoader mechanism to identify all potential Source factories. Note that this supports a Source being passed as well (which ensures any wrapping layers are added, such as 2IMG or DiskCopy).