public class ValidatingServiceRegistrationManagerImpl extends ServiceRegistrationManagerImpl
This is useful during automated testing. You can use it simply by overriding the default class in the service registration manager bean template:
<template:instance name="serviceRegistrationManager" t:serviceRegistrationManagerClass="eu.dnetlib.enabling.tools.registration.ValidatingServiceRegistrationManagerImpl" t:name="myServiceRegistrationManager" t:service="myService" t:endpoint="myServiceEndpoint" t:jobScheduler="jobScheduler"/>
If your service needs to receive blackboard messages, the notification can be automatically subscribed to your service profile simply by using a different service registrator component (blackboardServiceRegistrator):
<template:instance name="serviceRegistrationManager" t:serviceRegistrationManagerClass="eu.dnetlib.enabling.tools.registration.ValidatingServiceRegistrationManagerImpl" t:name="myServiceRegistrationManager" t:service="myService" t:endpoint="myServiceEndpoint" t:jobScheduler="jobScheduler" t:serviceRegistrator="blackboardServiceRegistrator"/>
This option is very useful for example to the MDStoreService or the IndexService.
ServiceRegistrationManagerImpl.State
Constructor and Description |
---|
ValidatingServiceRegistrationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
tick()
called periodically to advance the state machine.
|
getEndpoint, getProfileId, getRegistrator, getService, getServiceLocator, getServiceProfile, getState, isDisabled, isSchemaUpdate, registerSchema, registerService, setDisabled, setEndpoint, setProfileId, setRegistrator, setSchemaUpdate, setService, setServiceLocator, setServiceProfile, setState
public ValidatingServiceRegistrationManagerImpl()
public void tick()
tick
in class ServiceRegistrationManagerImpl
ServiceRegistrationManagerImpl.tick()
Copyright © 2019. All rights reserved.