Package io.microsphere.test.service
Class TestServiceImpl
- java.lang.Object
-
- io.microsphere.test.service.DefaultTestService
-
- io.microsphere.test.service.GenericTestService
-
- io.microsphere.test.service.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 Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextcontextprotected org.springframework.core.env.Environmentenvironment
-
Constructor Summary
Constructors Constructor Description TestServiceImpl()TestServiceImpl(org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.lang.Stringecho(java.lang.String message)-
Methods inherited from class io.microsphere.test.service.DefaultTestService
model, testArray, testEnum, testPrimitive
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.test.service.TestService
model, testArray, testEnum, testPrimitive
-
-
-
-
Method Detail
-
echo
@Cacheable(cacheNames={"cache-1","cache-2"}) public java.lang.String echo(java.lang.String message)- Specified by:
echoin interfaceTestService- Overrides:
echoin classGenericTestService
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-