public class SpecificationTraverserDefault extends Object implements SpecificationTraverser, SpecificationLoaderSpiAware
| Constructor and Description |
|---|
SpecificationTraverserDefault() |
| Modifier and Type | Method and Description |
|---|---|
SpecificationLoaderSpi |
getSpecificationLoaderSpi() |
void |
init()
Indicates to the component that it is to initialise itself.
|
void |
setSpecificationLoaderSpi(SpecificationLoaderSpi specificationLoader) |
void |
shutdown()
Indicates to the component that it will no longer be used and should shut
itself down cleanly.
|
void |
traverseReferencedClasses(ObjectSpecification noSpec,
List<Class<?>> discoveredTypes)
Does nothing.
|
void |
traverseTypes(Method method,
List<Class<?>> discoveredTypes)
Traverses the return types of each method.
|
public SpecificationTraverserDefault()
public void init()
ApplicationScopedComponentinit in interface ApplicationScopedComponentpublic void shutdown()
ApplicationScopedComponentshutdown in interface ApplicationScopedComponentpublic void traverseTypes(Method method, List<Class<?>> discoveredTypes)
It's possible for there to be multiple return types: the generic type, and the parameterized type.
traverseTypes in interface SpecificationTraverserpublic void traverseReferencedClasses(ObjectSpecification noSpec, List<Class<?>> discoveredTypes) throws ClassNotFoundException
traverseReferencedClasses in interface SpecificationTraverserClassNotFoundExceptionpublic SpecificationLoaderSpi getSpecificationLoaderSpi()
public void setSpecificationLoaderSpi(SpecificationLoaderSpi specificationLoader)
setSpecificationLoaderSpi in interface SpecificationLoaderSpiAwareCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.