Package org.jvnet.hk2.generator.internal
Class Utilities
- java.lang.Object
-
- org.jvnet.hk2.generator.internal.Utilities
-
public class Utilities extends Object
- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
List<DescriptorImpl>
createDescriptorIfService(InputStream is, List<File> searchHeres)
List<DescriptorImpl>
findAllServicesFromDirectory(File directory, List<File> parent)
Set<String>
getAssociatedContracts(List<File> searchHeres, String dotDelimitedName)
Gets the contracts associated with the name passed inString
getMetadataKey(String scopeOrQualifier, String methodName)
GenerateMethodAnnotationData
isClassAGenerator(List<File> searchHeres, String dotDelimitedName)
Returns true if it can be determined that this class is a generatorboolean
isClassAQualifier(List<File> searchHeres, String dotDelimitedName)
Returns true if it can be determined that this class is a qualifierboolean
isClassAScope(List<File> searchHeres, String dotDelimitedName)
Returns true if it can be determined that this class is a scope
-
-
-
Method Detail
-
isClassAScope
public boolean isClassAScope(List<File> searchHeres, String dotDelimitedName)
Returns true if it can be determined that this class is a scope- Parameters:
searchHere
-dotDelimitedName
-- 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:
searchHere
-dotDelimitedName
-- 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:
searchHere
-dotDelimitedName
-- 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:
searchHere
-dotDelimitedName
-- Returns:
- The set of contracts associated with this dotDelimited name (ordered iterator)
-
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()
-
-