TypeRepository
public class DefaultTypeRepository extends java.lang.Object implements TypeRepository
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<java.lang.Class<?>> |
findReferencedTypes(java.lang.String typeName) |
Finds the set of types referenced by the specified type.
|
java.util.Set<java.lang.Class<?>> |
getAllTypes() |
Gets all of the types found by this type repository.
|
java.util.List<java.lang.String> |
getPackages() |
Gets the packages that this type repository is associated with scanning.
|
java.lang.Class<?> |
loadClass(java.lang.String typeName) |
Loads the specified type.
|
public java.lang.Class<?> loadClass(java.lang.String typeName) throws java.lang.ClassNotFoundException
TypeRepository
loadClass
in interface TypeRepository
typeName
- the type to loadjava.lang.ClassNotFoundException
- if the class cannot be found and createdpublic java.util.List<java.lang.String> getPackages()
getPackages
in interface TypeRepository
public java.util.Set<java.lang.Class<?>> getAllTypes()
getAllTypes
in interface TypeRepository
public java.util.Set<java.lang.Class<?>> findReferencedTypes(java.lang.String typeName)
findReferencedTypes
in interface TypeRepository
typeName
- the starting type