tle.framework.component.impl.aamanager.service
Class ServiceManagerImpl

java.lang.Object
  extended bytle.framework.component.impl.aamanager.service.ServiceManagerImpl
All Implemented Interfaces:
ServiceManager

public class ServiceManagerImpl
extends java.lang.Object
implements ServiceManager

ServiceManagerÀÇ ±¸Çöü.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Constructor Summary
ServiceManagerImpl()
           
 
Method Summary
 Service getService(RequestInfo ri)
          ¿äû Á¤º¸ÀÇ ¸í·É¾î ID¿¡ ÇØ´çÇÏ´Â Service¸¦ ±¸ÇÑ´Ù.
 boolean hasGrant(Role role, Service service)
          service¸¦ ÁöÁ¤ÇÑ ¿ªÇÒÀÌ »ç¿ë°¡´ÉÇÑ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 void init(ComponentConfig config)
          ÄÄÆ÷³ÍÆ®ÀÇ "ServiceManagerImpl.configFile" ÃʱâÈ­ ÆÄ¶ó¹ÌÅͷκÎÅÍ ¼­ºñ½º ±×·ì ¹× ¼­ºñ½º ¸ñ·Ï Á¤º¸¸¦ ÀúÀåÇÑ ¼³Á¤ ÆÄÀÏÀÇ °æ·Î¸¦ ±¸ÇÑ´Ù.
 void reloadConfiguration(ComponentConfig config)
          ¼³Á¤ Á¤º¸¸¦ ´Ù½Ã Àоî¿Â´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManagerImpl

public ServiceManagerImpl()
Method Detail

init

public void init(ComponentConfig config)
          throws AAManagerException
ÄÄÆ÷³ÍÆ®ÀÇ "ServiceManagerImpl.configFile" ÃʱâÈ­ ÆÄ¶ó¹ÌÅͷκÎÅÍ ¼­ºñ½º ±×·ì ¹× ¼­ºñ½º ¸ñ·Ï Á¤º¸¸¦ ÀúÀåÇÑ ¼³Á¤ ÆÄÀÏÀÇ °æ·Î¸¦ ±¸ÇÑ´Ù.

Specified by:
init in interface ServiceManager
Parameters:
config - ÄÄÆ÷³ÍÆ® ÃʱâÈ­ Á¤º¸
Throws:
AAManagerException
See Also:
ServiceManager.init(tle.framework.component.ComponentConfig)

reloadConfiguration

public void reloadConfiguration(ComponentConfig config)
                         throws AAManagerException
¼³Á¤ Á¤º¸¸¦ ´Ù½Ã Àоî¿Â´Ù.

Specified by:
reloadConfiguration in interface ServiceManager
Parameters:
config - ÄÄÆ÷³ÍÆ® ÃʱâÈ­ Á¤º¸
Throws:
AAManagerException

getService

public Service getService(RequestInfo ri)
¿äû Á¤º¸ÀÇ ¸í·É¾î ID¿¡ ÇØ´çÇÏ´Â Service¸¦ ±¸ÇÑ´Ù. ó¸® ¼ø¼­´Â ´ÙÀ½°ú °°´Ù.
  1. serviceMap¿¡ ¸í·É¾î ID¿¡ ÇØ´çÇÏ´Â Service°¡ Á¸ÀçÇÒ °æ¿ì ÇØ´ç Service¸¦ ¸®ÅÏÇÑ´Ù.
  2. À§ÀÇ Á¶°Ç¿¡ ÇØ´çÇÏ´Â Service°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì,
    1. ÀÌ ¸í·É¾î ID¸¦ À§ÇÑ ±×·ìüÀÎÀÌ Á¸ÀçÇÒ °æ¿ì ±×·ìüÀÎÀ» ¸®ÅÏÇÑ´Ù.
  3. ¾Æ¹«°Íµµ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì NullService¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
getService in interface ServiceManager
Parameters:
ri - ¿äû Á¤º¸
Returns:
Service
See Also:
ServiceManager.getService(tle.framework.component.spi.ra.RequestInfo)

hasGrant

public boolean hasGrant(Role role,
                        Service service)
service¸¦ ÁöÁ¤ÇÑ ¿ªÇÒÀÌ »ç¿ë°¡´ÉÇÑ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù. service°¡ NullServiceÀÇ ÀνºÅϽºÀÎ °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
hasGrant in interface ServiceManager
Parameters:
role - ¿ªÇÒ
service - ¼­ºñ½º
Returns:
¼­ºñ½º »ç¿ë °¡´ÉÇÑ °æ¿ì true
See Also:
ServiceManager.hasGrant(tle.framework.component.spi.aamanager.Role, tle.framework.component.spi.aamanager.Service)