org.apache.wicket.guice
Class GuiceFieldValueFactory

java.lang.Object
  extended by org.apache.wicket.guice.GuiceFieldValueFactory
All Implemented Interfaces:
IFieldValueFactory

public class GuiceFieldValueFactory
extends java.lang.Object
implements IFieldValueFactory


Nested Class Summary
static class GuiceFieldValueFactory.MoreThanOneBindingException
           
 
Method Summary
 java.lang.Object getFieldValue(java.lang.reflect.Field field, java.lang.Object fieldOwner)
          Returns the value the field will be set to
 boolean supportsField(java.lang.reflect.Field field)
          Returns true if the factory can generate a value for the field, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFieldValue

public java.lang.Object getFieldValue(java.lang.reflect.Field field,
                                      java.lang.Object fieldOwner)
Returns the value the field will be set to

Specified by:
getFieldValue in interface IFieldValueFactory
Parameters:
field - field being injected
fieldOwner - instance of object being injected
Returns:
new field value

supportsField

public boolean supportsField(java.lang.reflect.Field field)
Returns true if the factory can generate a value for the field, false otherwise. If this method returns false, getFieldValue() will not be called on this factory

Specified by:
supportsField in interface IFieldValueFactory
Parameters:
field - field
Returns:
true if the factory can generate a value for the field, false otherwise


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.