in rsa/src/main/java/org/apache/aries/rsa/core/event/EventAdminSender.java [69:97]
private Event toEvent(RemoteServiceAdminEvent rsaEvent) {
String topic = getTopic(rsaEvent);
Map<String, Object> props = new HashMap<>();
Bundle bundle = rsaEvent.getSource();
props.put("bundle", bundle);
props.put("bundle.id", bundle.getBundleId());
props.put("bundle.symbolicname", bundle.getSymbolicName());
props.put("bundle.version", bundle.getVersion());
props.put("bundle.signer", ""); // TODO What to put here
Throwable exception = rsaEvent.getException();
if (exception != null) {
props.put("exception", exception);
props.put("exception.class", exception.getClass().getName());
props.put("exception.message", exception.getMessage());
}
if (rsaEvent.getExportReference() != null) {
EndpointDescription endpoint = rsaEvent.getExportReference().getExportedEndpoint();
props.put("endpoint.framework.uuid", endpoint.getFrameworkUUID());
props.put("endpoint.id", endpoint.getId());
props.put("objectClass", endpoint.getInterfaces());
}
ImportReference importReference = rsaEvent.getImportReference();
if (importReference != null && importReference.getImportedEndpoint() != null) {
props.put("service.imported.configs", importReference.getImportedEndpoint().getConfigurationTypes());
}
props.put("timestamp", System.currentTimeMillis());
props.put("event", rsaEvent);
return new Event(topic, props);
}