com.poscoict.glueframework.biz.control
Class GlueServiceManagerImpl

java.lang.Object
  extended by 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
protected  GlueCacheManager cacheManager
          Service DefinitionÀ» °ü¸®ÇÏ´Â Cache Manager
protected  GlueCacheLoader serviceLoader
          Service DefinitionÀ» ·ÎµùÇÏ´Â Cache Loader
 
Constructor Summary
GlueServiceManagerImpl()
          »ý¼ºÀÚ(constructor).
GlueServiceManagerImpl(GlueCacheManager manager, GlueCacheLoader loader)
          »ý¼ºÀÚ(constructor).
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 GlueService getService(String serviceName)
           
 void loadAllService()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheManager

protected GlueCacheManager cacheManager
Service DefinitionÀ» °ü¸®ÇÏ´Â Cache Manager


serviceLoader

protected GlueCacheLoader serviceLoader
Service DefinitionÀ» ·ÎµùÇÏ´Â Cache Loader

Constructor Detail

GlueServiceManagerImpl

public GlueServiceManagerImpl()
»ý¼ºÀÚ(constructor).


GlueServiceManagerImpl

public GlueServiceManagerImpl(GlueCacheManager manager,
                              GlueCacheLoader loader)
»ý¼ºÀÚ(constructor).

Parameters:
manager -
loader -
Method Detail

getService

public GlueService getService(String serviceName)
Specified by:
getService in interface GlueServiceManager
Returns:
GlueService

loadAllService

public void loadAllService()
Specified by:
loadAllService in interface GlueServiceManager

setCacheManager

public void setCacheManager(GlueCacheManager cacheManager)
setter method for DI.

Parameters:
cacheManager -

setServiceLoader

public void setServiceLoader(GlueCacheLoader serviceLoader)
setter method for DI.

Parameters:
serviceLoader -

setPreloading

public void setPreloading(boolean preloading)
setter method for DI.

Parameters:
preloading -

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

setExtraServiceNames

@Deprecated
public void setExtraServiceNames(List<String> extraServiceNames)
Deprecated. 



Copyright © 2013–2017 POSCO ICT. All rights reserved.