com.impetus.annovention
Class Discoverer

java.lang.Object
  extended by com.impetus.annovention.Discoverer
Direct Known Subclasses:
ClasspathDiscoverer

public abstract class Discoverer
extends Object

Base annotation discoverer.

Author:
animesh.kumar

Constructor Summary
Discoverer()
          Instantiates a new Discoverer.
 
Method Summary
 void addAnnotationListener(ClassAnnotationDiscoveryListener listener)
          Adds ClassAnnotationDiscoveryListener
 void addAnnotationListener(FieldAnnotationDiscoveryListener listener)
          Adds FieldAnnotationDiscoveryListener
 void addAnnotationListener(MethodAnnotationDiscoveryListener listener)
          Adds MethodAnnotationDiscoveryListener
 void discover()
          that's my buddy! this is where all the discovery starts.
abstract  URL[] findResources()
          Finds resources to scan for
abstract  Filter getFilter()
          Gets the filter implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Discoverer

public Discoverer()
Instantiates a new Discoverer.

Method Detail

addAnnotationListener

public final void addAnnotationListener(ClassAnnotationDiscoveryListener listener)
Adds ClassAnnotationDiscoveryListener

Parameters:
listener -

addAnnotationListener

public final void addAnnotationListener(FieldAnnotationDiscoveryListener listener)
Adds FieldAnnotationDiscoveryListener

Parameters:
listener -

addAnnotationListener

public final void addAnnotationListener(MethodAnnotationDiscoveryListener listener)
Adds MethodAnnotationDiscoveryListener

Parameters:
listener -

getFilter

public abstract Filter getFilter()
Gets the filter implementation.

Returns:
the filter

findResources

public abstract URL[] findResources()
Finds resources to scan for


discover

public final void discover()
that's my buddy! this is where all the discovery starts.



Copyright © 2011. All Rights Reserved.