org.nakedobjects.metamodel.specloader.traverser
Class SpecificationTraverserDefault

java.lang.Object
  extended by org.nakedobjects.metamodel.specloader.traverser.SpecificationTraverserDefault
All Implemented Interfaces:
ApplicationScopedComponent, Component, SpecificationLoaderAware, SpecificationTraverser

public class SpecificationTraverserDefault
extends java.lang.Object
implements SpecificationTraverser, SpecificationLoaderAware


Constructor Summary
SpecificationTraverserDefault()
           
 
Method Summary
 SpecificationLoader getSpecificationLoader()
           
 void init()
          Indicates to the component that it is to initialise itself.
 void setSpecificationLoader(SpecificationLoader specificationLoader)
           
 void shutdown()
          Indicates to the component that it will no longer be used and should shut itself down cleanly.
 void traverseReferencedClasses(NakedObjectSpecification noSpec, java.util.List<java.lang.Class<?>> discoveredTypes)
          Does nothing.
 void traverseTypes(java.lang.reflect.Method method, java.util.List<java.lang.Class<?>> discoveredTypes)
          Traverses the return types of each method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecificationTraverserDefault

public SpecificationTraverserDefault()
Method Detail

init

public void init()
Description copied from interface: ApplicationScopedComponent
Indicates to the component that it is to initialise itself.

Specified by:
init in interface ApplicationScopedComponent

shutdown

public void shutdown()
Description copied from interface: ApplicationScopedComponent
Indicates to the component that it will no longer be used and should shut itself down cleanly.

Specified by:
shutdown in interface ApplicationScopedComponent

traverseTypes

public void traverseTypes(java.lang.reflect.Method method,
                          java.util.List<java.lang.Class<?>> discoveredTypes)
Traverses the return types of each method.

It's possible for there to be multiple return types: the generic type, and the parameterized type.

Specified by:
traverseTypes in interface SpecificationTraverser

traverseReferencedClasses

public void traverseReferencedClasses(NakedObjectSpecification noSpec,
                                      java.util.List<java.lang.Class<?>> discoveredTypes)
                               throws java.lang.ClassNotFoundException
Does nothing.

Specified by:
traverseReferencedClasses in interface SpecificationTraverser
Throws:
java.lang.ClassNotFoundException

getSpecificationLoader

public SpecificationLoader getSpecificationLoader()

setSpecificationLoader

public void setSpecificationLoader(SpecificationLoader specificationLoader)
Specified by:
setSpecificationLoader in interface SpecificationLoaderAware


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.