Class Web3jFactoryBean

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.web3j.protocol.Web3j>
com.turbospaces.web3j.Web3jFactoryBean
All Implemented Interfaces:
com.turbospaces.boot.BootstrapAware, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.web3j.protocol.Web3j>, org.springframework.beans.factory.InitializingBean

public class Web3jFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<org.web3j.protocol.Web3j> implements com.turbospaces.boot.BootstrapAware
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Web3jFactoryBean(com.turbospaces.ups.PlainServiceInfo serviceInfo)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.web3j.protocol.Web3j
     
    protected void
    destroyInstance(org.web3j.protocol.Web3j instance)
     
     
    void
    setBootstrap(com.turbospaces.boot.Bootstrap bootstrap)
     

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Web3jFactoryBean

      public Web3jFactoryBean(com.turbospaces.ups.PlainServiceInfo serviceInfo) throws Exception
      Throws:
      Exception
  • Method Details

    • setBootstrap

      public void setBootstrap(com.turbospaces.boot.Bootstrap bootstrap)
      Specified by:
      setBootstrap in interface com.turbospaces.boot.BootstrapAware
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.web3j.protocol.Web3j>
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<org.web3j.protocol.Web3j>
    • createInstance

      protected org.web3j.protocol.Web3j createInstance() throws Exception
      Specified by:
      createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<org.web3j.protocol.Web3j>
      Throws:
      Exception
    • destroyInstance

      protected void destroyInstance(org.web3j.protocol.Web3j instance) throws Exception
      Overrides:
      destroyInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<org.web3j.protocol.Web3j>
      Throws:
      Exception