net.sf.japaki.self
Class InspectorMill

java.lang.Object
  extended by net.sf.japaki.self.InspectorMill

public class InspectorMill
extends Object

Defines what inspector is used for a given class.


Constructor Summary
InspectorMill()
           
InspectorMill(ParserStore parserStore)
          Creates a new inspector mill.
 
Method Summary
<V> Inspector<V,V>
getInspector(Class<V> type)
          Creates a new inspector for the given class.
<B,V> Inspector<B,V>
getInspector(Property<B,V> property)
          Creates a new inspector for the given property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectorMill

public InspectorMill(ParserStore parserStore)
Creates a new inspector mill.

Parameters:
parserStore - the parser store to be used for parser creation

InspectorMill

public InspectorMill()
Method Detail

getInspector

public <V> Inspector<V,V> getInspector(Class<V> type)
Creates a new inspector for the given class.

Parameters:
type - type of the bean to be inspected
Returns:
a new inspector for the given class

getInspector

public <B,V> Inspector<B,V> getInspector(Property<B,V> property)
Creates a new inspector for the given property.

Parameters:
property - property to be used when a new parser is created
Returns:
a new inspector for the given property