jpel.resolver
Class BinderImpl

java.lang.Object
  |
  +--jpel.resolver.BinderImpl
All Implemented Interfaces:
Binder

public class BinderImpl
extends java.lang.Object
implements Binder

Implementação padrão do Binder.


Constructor Summary
BinderImpl()
           
 
Method Summary
 void execute(jpel.resolver.Bind bind)
          Executa um bind.
 void validate(jpel.resolver.Bind bind)
          Verifica a validade de um bind.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinderImpl

public BinderImpl()
Method Detail

validate

public void validate(jpel.resolver.Bind bind)
              throws BinderException
Description copied from interface: Binder
Verifica a validade de um bind. Tipicamente verifica se no objeto solicitado existe o método indicado no bind, se os tipos dos método e do objeto fornecido são compatíveis.

Specified by:
validate in interface Binder
Parameters:
bind - Bind que deve ser validado.
Throws:
BinderException - Quando o bind não é válido.

execute

public void execute(jpel.resolver.Bind bind)
             throws BinderException
Description copied from interface: Binder
Executa um bind. Isto é, no objeto indicado, chama o metodo com o tipo dado passando o argumento.

Specified by:
execute in interface Binder
Parameters:
bind - Bind que deve ser executado.
Throws:
BinderException - Quando há falha na tipagem das chamadas.