Class GlueServiceManagerImpl
java.lang.Object
com.poscoict.glueframework.biz.control.GlueServiceManagerImpl
- All Implemented Interfaces:
GlueServiceManager
,DisposableBean
,InitializingBean
public class GlueServiceManagerImpl
extends Object
implements GlueServiceManager, InitializingBean, DisposableBean
ServiceManager 구현체.
Bean Property
- cacheManager : (필수) GlueCacheManager 참조 bean id.
- serviceLoader : (필수) GlueCacheLoader 참조 bean id
- preloading : (선택) true일경우 serviceLoader를 통해 모든 ServiceName를 가져온다.
예제
사용 예# 1
<bean id="serviceManager" class="com.poscoict.glueframework.biz.control.GlueServiceManagerImpl">
<property name="cacheManager" ref="cacheManager" />
<property name="serviceLoader" ref="serviceLoader" />
</bean>
사용 예# 2
<bean id="serviceManager" class="com.poscoict.glueframework.biz.control.GlueServiceManagerImpl">
<property name="cacheManager" ref="cacheManager" />
<property name="serviceLoader" ref="serviceLoader" />
<property name="preloading" value="true" />
</bean>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GlueCacheManager
Service Definition을 관리하는 Cache Managerprotected GlueCacheLoader
Service Definition을 로딩하는 Cache Loader -
Constructor Summary
ConstructorsConstructorDescription생성자(constructor).GlueServiceManagerImpl
(GlueCacheManager manager, GlueCacheLoader loader) 생성자(constructor). -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
getService
(String serviceName) void
void
setCacheManager
(GlueCacheManager cacheManager) setter method for DI.void
setExtraServiceNames
(List<String> extraServiceNames) Deprecated.void
setPreloading
(boolean preloading) setter method for DI.void
setServiceLoader
(GlueCacheLoader serviceLoader) setter method for DI.
-
Field Details
-
cacheManager
Service Definition을 관리하는 Cache Manager -
serviceLoader
Service Definition을 로딩하는 Cache Loader
-
-
Constructor Details
-
GlueServiceManagerImpl
public GlueServiceManagerImpl()생성자(constructor). -
GlueServiceManagerImpl
생성자(constructor).- Parameters:
manager
-loader
-
-
-
Method Details
-
getService
- Specified by:
getService
in interfaceGlueServiceManager
- Parameters:
serviceName
-- Returns:
- GlueService
-
loadAllService
public void loadAllService()- Specified by:
loadAllService
in interfaceGlueServiceManager
-
setCacheManager
setter method for DI.- Parameters:
cacheManager
-
-
setServiceLoader
setter method for DI.- Parameters:
serviceLoader
-
-
setPreloading
public void setPreloading(boolean preloading) setter method for DI.- Parameters:
preloading
-
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
destroy
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-
setExtraServiceNames
Deprecated.
-