use of org.jaffa.soa.services.configdomain.SoaEvents in project jaffa-framework by jaffa-projects.
the class SoaEventManager method registerResource.
/**
* {@inheritDoc}
*/
@Override
public void registerResource(Resource resource, String context, String variation) throws JAXBException, SAXException, IOException {
SoaEvents soaEvents = JAXBHelper.unmarshalConfigFile(SoaEvents.class, resource, CONFIGURATION_SCHEMA_FILE);
if (soaEvents != null) {
for (SoaEventInfo soaEventInfo : soaEvents.getSoaEvent()) {
ContextKey contextKey = new ContextKey(soaEventInfo.getName(), resource.getURI().toString(), variation, context);
registerSoaEventInfo(contextKey, soaEventInfo);
}
}
}
use of org.jaffa.soa.services.configdomain.SoaEvents in project jaffa-framework by jaffa-projects.
the class SoaEventManager method unregisterResource.
/**
* {@inheritDoc}
*/
@Override
public void unregisterResource(Resource resource, String context, String variation) throws JAXBException, SAXException, IOException {
SoaEvents soaEvents = JAXBHelper.unmarshalConfigFile(SoaEvents.class, resource, CONFIGURATION_SCHEMA_FILE);
if (soaEvents != null) {
for (SoaEventInfo soaEventInfo : soaEvents.getSoaEvent()) {
ContextKey contextKey = new ContextKey(soaEventInfo.getName(), resource.getURI().toString(), variation, context);
unregisterSoaEventInfo(contextKey);
}
}
}
Aggregations