com.posco.glue.reuse
Class PoscoServiceLoader

java.lang.Object
  extended by com.posco.glue.reuse.PoscoServiceLoader
All Implemented Interfaces:
GlueCacheLoader, DisposableBean, InitializingBean

public class PoscoServiceLoader
extends Object
implements GlueCacheLoader, InitializingBean, DisposableBean

GlueCacheLoader ±¸Çöü. GlueService ¸¦ DB·ÎºÎÅÍ ·ÎµùÇÕ´Ï´Ù.

 <?xml version="1.0" encoding="UTF-8"?>
 <beans ...>
     ...
     <bean id="serviceManager" class="com.poscoict.glueframework.biz.control.GlueServiceManagerImpl" lazy-init="true">
         ...
         <property name="serviceLoader" ref="serviceLoader" />
     </bean>
     <bean id="serviceLoader" class="com.posco.glue.reuse.PoscoServiceLoader">
         <property name="dataSource" ref="dataSource" />
         <property name="queryManager" ref="queryManager" />
         <property name="queryExtraBindingInfo">
             <list>
                 <value>${test.GCS_COMP_CODE}</value>
             </list>
         </property>
     </bean>
     <bean id="dataSource" .../>
     <bean id="queryManager" class="com.poscoict.glueframework.dao.manager.GlueQueryManagerImpl">
         ...
         <property name="queryLoader" ref="queryLoader" />
     </bean>
     <bean id="queryLoader" class="com.poscoict.glueframework.dao.manager.GlueQueryLoader" >
         ...
         <property name="extraQueryFiles">
             <list>
                 ...
                 <value>libquery/posco-meta-access-query.glue_sql</value>
             </list>
         </property>
     </bean>
 </beans>
 


Constructor Summary
PoscoServiceLoader()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 Object loadCacheObject(Object cacheKey, String regionName)
           
 void setDataSource(DataSource dataSource)
          setter method for DI.
 void setQueryExtraBindingInfo(List<String> queryExtraBindingInfo)
          setter method for DI.
 void setQueryManager(GlueQueryManager queryManager)
          setter method for DI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoscoServiceLoader

public PoscoServiceLoader()
Method Detail

setDataSource

public void setDataSource(DataSource dataSource)
setter method for DI.

Parameters:
dataSource -

setQueryManager

public void setQueryManager(GlueQueryManager queryManager)
setter method for DI.

Parameters:
queryManager -

setQueryExtraBindingInfo

public void setQueryExtraBindingInfo(List<String> queryExtraBindingInfo)
setter method for DI.

Parameters:
queryExtraBindingInfo -

loadCacheObject

public Object loadCacheObject(Object cacheKey,
                              String regionName)
                       throws GlueException
Specified by:
loadCacheObject in interface GlueCacheLoader
Throws:
GlueException

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


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