Interface ValueResolver


  • public interface ValueResolver
    ValueResolver will try to convert a ComponentAgent to the object of specified class. If failed, it will throw run-time exception. A ComponentAgent can be converted into multiple types of objects, e.g. OperationAgent or native ZK component class. We design the value resolver mechanism to keep extension for potential conversion in the future.
    Author:
    dennis
    • Method Detail

      • resolve

        <T> T resolve​(Agent agent,
                      Class<T> clazz)
        resolve the component agent to a object by registered value resolver