Package org.nuiton.topia.persistence
Interface TopiaService
- All Known Subinterfaces:
TopiaMigrationService
- All Known Implementing Classes:
HibernateTopiaMigrationService
public interface TopiaService
Used to implement a service for Topia.
A TopiaService is started at the very beginning of the
TopiaApplicationContext
startup and provides user extra operations not available in the topia core replication, IO, etc.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Called when service is no longer necessary.voidinitTopiaService(TopiaApplicationContext topiaApplicationContext, Map<String, String> serviceConfiguration) Initialize the service.
-
Method Details
-
initTopiaService
void initTopiaService(TopiaApplicationContext topiaApplicationContext, Map<String, String> serviceConfiguration) Initialize the service.- Parameters:
topiaApplicationContext- is theTopiaApplicationContextto which the current service is attached. It's the service responsibility to keep a reference to it.serviceConfiguration- all the configuration directives for this service.
-
close
void close()Called when service is no longer necessary. This method is called whenTopiaApplicationContext.close()is called.
-