Class Utilities

java.lang.Object
org.jvnet.hk2.generator.internal.Utilities

public class Utilities extends Object
Author:
jwells
  • Method Details

    • isClassAScope

      public boolean isClassAScope(List<File> searchHeres, String dotDelimitedName)
      Returns true if it can be determined that this class is a scope
      Parameters:
      dotDelimitedName -
      searchHere -
      Returns:
      true if this class is a scope
    • isClassAQualifier

      public boolean isClassAQualifier(List<File> searchHeres, String dotDelimitedName)
      Returns true if it can be determined that this class is a qualifier
      Parameters:
      dotDelimitedName -
      searchHere -
      Returns:
      true if this class is a qualifier
    • isClassAGenerator

      public GenerateMethodAnnotationData isClassAGenerator(List<File> searchHeres, String dotDelimitedName)
      Returns true if it can be determined that this class is a generator
      Parameters:
      dotDelimitedName -
      searchHere -
      Returns:
      true if this class is a qualifier
    • getAssociatedContracts

      public Set<String> getAssociatedContracts(List<File> searchHeres, String dotDelimitedName)
      Gets the contracts associated with the name passed in
      Parameters:
      dotDelimitedName -
      searchHere -
      Returns:
      The set of contracts associated with this dotDelimited name (ordered iterator)
    • getMetadataKey

      public String getMetadataKey(String scopeOrQualifier, String methodName)
    • createDescriptorIfService

      public List<DescriptorImpl> createDescriptorIfService(InputStream is, List<File> searchHeres) throws IOException
      Throws:
      IOException
    • findAllServicesFromDirectory

      public List<DescriptorImpl> findAllServicesFromDirectory(File directory, List<File> parent) throws IOException
      Throws:
      IOException
    • close

      public void close()