Class EclipseResourceFactory

java.lang.Object
org.jdrupes.builder.eclipse.EclipseResourceFactory
All Implemented Interfaces:
ResourceFactory

public class EclipseResourceFactory extends Object implements ResourceFactory
A factory for creating Java related resource objects.
  • Constructor Details

  • Method Details

    • newResource

      public <T extends Resource> Optional<T> newResource(ResourceType<T> type, Project project, Object... args)
      Description copied from interface: ResourceFactory
      Returns a new resource of the given type if the factory instance can create it.
      Specified by:
      newResource in interface ResourceFactory
      Type Parameters:
      T - the generic resource type
      Parameters:
      type - the resource type
      project - the project
      args - the additional arguments
      Returns:
      the result. Optional.empty() if the resource cannot be created by the factory instance.