Class IdentityBinder

java.lang.Object
nz.org.riskscape.engine.bind.BaseBinder
nz.org.riskscape.engine.bind.impl.IdentityBinder
All Implemented Interfaces:
nz.org.riskscape.engine.bind.ParameterBinder, nz.org.riskscape.engine.Identified

public class IdentityBinder extends nz.org.riskscape.engine.bind.BaseBinder

Special case binder that sits at the end of the binders and will just return back what it's given if no binding is necessary

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> nz.org.riskscape.problem.ResultOrProblems<T>
    bindValue(nz.org.riskscape.engine.bind.BindingContext context, Object value, Class<T> destinationType)
     
    boolean
    canBind(Class<?> sourceType, Class<?> destinationType)
     

    Methods inherited from class nz.org.riskscape.engine.bind.BaseBinder

    bind, getId, wrapLookup, wrapLookupNullOnMissing

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass
  • Constructor Details

    • IdentityBinder

      public IdentityBinder()
  • Method Details

    • canBind

      public boolean canBind(Class<?> sourceType, Class<?> destinationType)
    • bindValue

      public <T> nz.org.riskscape.problem.ResultOrProblems<T> bindValue(nz.org.riskscape.engine.bind.BindingContext context, Object value, Class<T> destinationType)