Class AbstractDataAccessHandler<T extends java.lang.annotation.Annotation>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.gridgo.core.GridgoContext context  
      protected io.gridgo.connector.support.MessageProducer gateway  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractDataAccessHandler​(java.lang.Class<? extends T> annotatedClass)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract io.gridgo.framework.support.Message buildMessage​(T annotation, java.lang.reflect.Method method, java.lang.Object[] args)  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      protected java.lang.Object filterPojoMapper​(java.lang.reflect.Method method, java.lang.Object result)  
      protected java.lang.Object filterSingleMapper​(java.lang.reflect.Method method, io.gridgo.framework.support.Message result)  
      java.lang.Class<? extends T> getAnnotatedClass()  
      io.gridgo.core.GridgoContext getContext()  
      io.gridgo.connector.support.MessageProducer getGateway()  
      int hashCode()  
      org.joo.promise4j.Promise<?,​java.lang.Exception> invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      void setContext​(io.gridgo.core.GridgoContext context)  
      void setGateway​(io.gridgo.connector.support.MessageProducer gateway)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • context

        protected io.gridgo.core.GridgoContext context
      • gateway

        protected io.gridgo.connector.support.MessageProducer gateway
    • Constructor Detail

      • AbstractDataAccessHandler

        public AbstractDataAccessHandler​(java.lang.Class<? extends T> annotatedClass)
    • Method Detail

      • invoke

        public org.joo.promise4j.Promise<?,​java.lang.Exception> invoke​(java.lang.Object proxy,
                                                                             java.lang.reflect.Method method,
                                                                             java.lang.Object[] args)
                                                                      throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • filterSingleMapper

        protected java.lang.Object filterSingleMapper​(java.lang.reflect.Method method,
                                                      io.gridgo.framework.support.Message result)
      • filterPojoMapper

        protected java.lang.Object filterPojoMapper​(java.lang.reflect.Method method,
                                                    java.lang.Object result)
      • buildMessage

        protected abstract io.gridgo.framework.support.Message buildMessage​(T annotation,
                                                                            java.lang.reflect.Method method,
                                                                            java.lang.Object[] args)
      • getContext

        public io.gridgo.core.GridgoContext getContext()
      • getGateway

        public io.gridgo.connector.support.MessageProducer getGateway()
      • getAnnotatedClass

        public java.lang.Class<? extends T> getAnnotatedClass()
      • setContext

        public void setContext​(io.gridgo.core.GridgoContext context)
        Specified by:
        setContext in interface DataAccessHandler
      • setGateway

        public void setGateway​(io.gridgo.connector.support.MessageProducer gateway)
        Specified by:
        setGateway in interface DataAccessHandler
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object