Class TestServiceImpl

  • All Implemented Interfaces:
    TestService, java.io.Serializable, java.lang.AutoCloseable, java.util.EventListener

    @Service("testService")
    @ServiceMode
    @ComponentScan(basePackages="io.microsphere.annotation.processor.model",scopedProxy=INTERFACES) @ComponentScan(basePackages="io.microsphere.annotation.processor.util",includeFilters=)
    @TestAnnotation(z=true,c='b',b=(byte)0x01,s=1,i=1,l=1L,f=1.0f,d=1.0,string="testService",type=GenericTestService.class,types={TestService.class,java.lang.AutoCloseable.class,java.io.Serializable.class},timeUnit=HOURS,since=@Since("1.0.0"),properties={@ConfigurationProperty(name="key",type=java.lang.String.class,defaultValue="default-value",required=true,description="description"),@ConfigurationProperty(name="key2",type=java.lang.Integer.class,defaultValue="default-value2",required=true,description="description2"),@ConfigurationProperty(name="key3",type=java.lang.Class.class,defaultValue="default-value3",required=true,description="description3")})
    public class TestServiceImpl
    extends GenericTestService
    implements TestService, java.lang.AutoCloseable, java.io.Serializable
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Serialized Form
    • Field Detail

      • context

        @Autowired
        protected org.springframework.context.ApplicationContext context
      • environment

        protected org.springframework.core.env.Environment environment
    • Constructor Detail

      • TestServiceImpl

        public TestServiceImpl()
      • TestServiceImpl

        public TestServiceImpl​(@Autowired
                               org.springframework.core.env.Environment environment)
    • Method Detail

      • echo

        @Cacheable(cacheNames={"cache-1","cache-2"})
        public java.lang.String echo​(java.lang.String message)
        Specified by:
        echo in interface TestService
        Overrides:
        echo in class GenericTestService
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception