Class AbstractService

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  AbstractService.SerializableDTO
      This is the SerializableDTO (DataTransferObject) for the core services.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Tenant tenant
      Deprecated.
      since 5.0
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractService()  
    • Field Detail

      • tenant

        @Deprecated
        protected volatile Tenant tenant
        Deprecated.
        since 5.0
        This property is left for compilation backward compatibility. Any write to it has no effect won't reflect to service behaviour. For reading current tenant use {#getCurrentTenant} instead.
    • Constructor Detail

      • AbstractService

        public AbstractService()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Invoked by a BeanFactory after it has set all bean properties supplied. Overwrite this method for adding/implementing additional code into the service. Important note: Please call always super.afterPropertiesSet() before or the java serialization won't work.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
        See Also:
        InitializingBean.afterPropertiesSet()
      • setCurrentTenant

        public void setCurrentTenant​(Tenant currentTenant)
      • getCurrentTenant

        protected Tenant getCurrentTenant()
      • setBeanName

        public void setBeanName​(java.lang.String name)
        Sets the bean name of the current class. Called by the Spring framework.
        Specified by:
        setBeanName in interface org.springframework.beans.factory.BeanNameAware
      • writeReplace

        public java.lang.Object writeReplace()
                                      throws java.io.ObjectStreamException
        Used by the Java serialization mechanism. Instead of writing the current service class instance to the stream the (static) class object AbstractService.SerializableDTO is written. This object contains the used Tenant and the current bean name.
        Throws:
        java.io.ObjectStreamException