Class TopiaServiceSupportImpl

java.lang.Object
org.nuiton.topia.persistence.internal.support.TopiaServiceSupportImpl
All Implemented Interfaces:
TopiaServiceSupport

public class TopiaServiceSupportImpl extends Object implements TopiaServiceSupport
This is the default TopiaServiceSupport implementation. It will look in TopiaApplicationContext.getConfiguration() to find services declarations and associated configuration. All of those properties match the topia.service.* prefix. A service is declared by giving it a name and the implementation class FQN by following the pattern.
 topia.service.myServiceName=com.my.company.my.app.MyServiceImpl
 
Here, myServiceName is the name of the service, you can choose any String. Value must be the FQN of class that provide an empty constructor and implements TopiaService. To passes configuration to a service, you can do as follow:
 topia.service.myServiceName=com.my.company.my.app.MyServiceImpl
 topia.service.myServiceName.myConfigurationDirective=myConfigurationValue
 
When TopiaService.initTopiaService(org.nuiton.topia.persistence.TopiaApplicationContext, java.util.Map) will be called, the given map will contain a single entry which key is "myConfigurationDirective" and value is "myConfigurationValue".
Author:
Arnaud Thimel (Code Lutin)