kaos.core.csi.extension
Class KAoSExtensionComponentManagerImpl

java.lang.Object
  extended by kaos.core.csi.extension.KAoSExtensionComponentManagerImpl
All Implemented Interfaces:
KAoSExtensionComponentManager
Direct Known Subclasses:
EnforcerManagerImpl, EventsHistoryManager, InstanceClassifierManagerImpl, ObligationMonitorManager, StateMonitorManagerImpl

public class KAoSExtensionComponentManagerImpl
extends java.lang.Object
implements KAoSExtensionComponentManager

This class implements the interface defines methods to manage a repository of KAoSExtensionComponents


Constructor Summary
protected KAoSExtensionComponentManagerImpl(java.lang.String type)
           
 
Method Summary
 void changeComponentEnabledStatus(java.lang.String associatedOntType, boolean state)
          Changes the 'enabled' status of the given component
 boolean deregisterComponent(java.lang.String componentName)
          Deregister a specific KAoSExtensionComponent from KAoS
 java.util.List<KAoSExtensionComponent> getAllKAoSExtensionComponents()
          Get all components contained in this repository.
 KAoSExtensionComponent getComponent(java.lang.String associatedOntType, ServiceProperties props)
          Obtain a specific for the given manager kind of extension component associated with the provided ontology attribute.
 boolean getComponentEnabledStatus(java.lang.String associatedOntType)
          Get the 'enabled' status of the given component
 java.lang.String getRepositoryManagerType()
          Get the repository type of this manager.
 java.util.Map<java.lang.String,java.lang.String> getRepositoryTableInformation()
          This method returns the concepts names and their corresponding component names in a map.
 ServiceProperties getServiceProperties()
           
 void initialize(ServiceProperties env)
           
protected static void printDebugString(java.lang.String msg, int loggerDisplayLevel)
           
 boolean registerComponent(KAoSExtensionComponent extensionComponent)
          Register a specific KAoSExtensionComponent with KAoS
 void removeAllKAoSExtensionComponents()
          Remove all components contained in this repository.
 void setServiceProperties(ServiceProperties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KAoSExtensionComponentManagerImpl

protected KAoSExtensionComponentManagerImpl(java.lang.String type)
Method Detail

getRepositoryManagerType

public java.lang.String getRepositoryManagerType()
Description copied from interface: KAoSExtensionComponentManager
Get the repository type of this manager. e.g. if a Classifier or Enabler etc.

Specified by:
getRepositoryManagerType in interface KAoSExtensionComponentManager
Returns:
A String specifying the type of this manager.

registerComponent

public boolean registerComponent(KAoSExtensionComponent extensionComponent)
Description copied from interface: KAoSExtensionComponentManager
Register a specific KAoSExtensionComponent with KAoS

Specified by:
registerComponent in interface KAoSExtensionComponentManager
Parameters:
extensionComponent - KAoSExtensionComponent that is being registered
Returns:
boolean indicating whether the component was successfully registered

deregisterComponent

public boolean deregisterComponent(java.lang.String componentName)
Description copied from interface: KAoSExtensionComponentManager
Deregister a specific KAoSExtensionComponent from KAoS

Specified by:
deregisterComponent in interface KAoSExtensionComponentManager
Parameters:
componentName - name of the component
Returns:
boolean indicating whether the component was successfully deregistered

getComponent

public KAoSExtensionComponent getComponent(java.lang.String associatedOntType,
                                           ServiceProperties props)
Description copied from interface: KAoSExtensionComponentManager
Obtain a specific for the given manager kind of extension component associated with the provided ontology attribute. The component was either created during the bootstrap process, was registered previously using the registerComponent method, or, if possible, will be created on the fly.

Specified by:
getComponent in interface KAoSExtensionComponentManager
Parameters:
associatedOntType - string specifying the ontology attribute, for which a component is requested
props - ServiceProperties (optionally) specifying additional ontological properties of the component.

changeComponentEnabledStatus

public void changeComponentEnabledStatus(java.lang.String associatedOntType,
                                         boolean state)
Description copied from interface: KAoSExtensionComponentManager
Changes the 'enabled' status of the given component

Specified by:
changeComponentEnabledStatus in interface KAoSExtensionComponentManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.
state - A boolean parameter to which the status would change

getComponentEnabledStatus

public boolean getComponentEnabledStatus(java.lang.String associatedOntType)
Description copied from interface: KAoSExtensionComponentManager
Get the 'enabled' status of the given component

Specified by:
getComponentEnabledStatus in interface KAoSExtensionComponentManager
Parameters:
associatedOntType - A String indicating the ontology type associated with that component.

getAllKAoSExtensionComponents

public java.util.List<KAoSExtensionComponent> getAllKAoSExtensionComponents()
Description copied from interface: KAoSExtensionComponentManager
Get all components contained in this repository.

Specified by:
getAllKAoSExtensionComponents in interface KAoSExtensionComponentManager
Returns:
A Vector containing all components.

removeAllKAoSExtensionComponents

public void removeAllKAoSExtensionComponents()
Description copied from interface: KAoSExtensionComponentManager
Remove all components contained in this repository.

Specified by:
removeAllKAoSExtensionComponents in interface KAoSExtensionComponentManager

getRepositoryTableInformation

public java.util.Map<java.lang.String,java.lang.String> getRepositoryTableInformation()
Description copied from interface: KAoSExtensionComponentManager
This method returns the concepts names and their corresponding component names in a map. The keys in this table are Strings specifying concept names and values are Strings specifying corresponding component names

Specified by:
getRepositoryTableInformation in interface KAoSExtensionComponentManager

getServiceProperties

public ServiceProperties getServiceProperties()
                                       throws ServiceException,
                                              ServiceFailure
Throws:
ServiceException
ServiceFailure

setServiceProperties

public void setServiceProperties(ServiceProperties props)
                          throws ServiceException,
                                 ServiceFailure
Throws:
ServiceException
ServiceFailure

initialize

public void initialize(ServiceProperties env)
                throws ServiceException
Throws:
ServiceException

printDebugString

protected static void printDebugString(java.lang.String msg,
                                       int loggerDisplayLevel)