com.fatwire.gst.foundation.controller.action
Class AnnotationBinder

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.action.AnnotationBinder

public final class AnnotationBinder
extends Object

Helper to bind variables to an Object based on annotated fields.

Since:
12 mei 2012
Author:
Dolf Dijkstra

Field Summary
protected static org.apache.commons.logging.Log LOG
           
protected static org.apache.commons.logging.Log LOG_TIME
           
 
Constructor Summary
AnnotationBinder()
           
 
Method Summary
static void bind(Object object, COM.FutureTense.Interfaces.ICS ics)
          Inject ICS runtime objects into the object.
static void bindToField(Object object, COM.FutureTense.Interfaces.ICS ics, Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG

LOG_TIME

protected static final org.apache.commons.logging.Log LOG_TIME
Constructor Detail

AnnotationBinder

public AnnotationBinder()
Method Detail

bind

public static final void bind(Object object,
                              COM.FutureTense.Interfaces.ICS ics)
Inject ICS runtime objects into the object. Objects flagged with the InjectForRequest annotation will be populated by this method by retrieving the value from the Factory.getObject(String,Class) method.

Parameters:
object - the object to inject into.
ics - the ics context.

bindToField

public static void bindToField(Object object,
                               COM.FutureTense.Interfaces.ICS ics,
                               Field field)
                        throws SecurityException
Parameters:
object - object to bind to
ics - the ics context
field - the field to inject to
Throws:
SecurityException


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.