Class Resource.Factory

  • Enclosing interface:
    Resource

    public static class Resource.Factory
    extends Object
    • Method Detail

      • create

        public static Resource create()
        Create a default resource implementation. Equivalent to create(false).
        Returns:
        the resource
      • create

        public static Resource create​(boolean runtimeOnly)
        Create a default resource implementation.
        Parameters:
        runtimeOnly - the value the resource should return from Resource.isRuntime()
        Returns:
        the resource
      • create

        public static Resource create​(boolean runtimeOnly,
                                      Set<String> orderedChildTypes)
        Create a default resource implementation.
        Parameters:
        runtimeOnly - the value the resource should return from Resource.isRuntime()
        orderedChildTypes - the names of any child types where the order of the children matters
        Returns:
        the resource