public void modifiedService(ServiceReference reference, Object o) {
}
public void removedService(ServiceReference reference, Object o) {
ExtensionDeclaration extensionDeclaration = (ExtensionDeclaration) o;
// Then stop the factory
try {
IPojoFactory factory = m_future.get();
// It is possible that the factory couldn't be created
if (factory != null) {
factory.removeFactoryStateListener(ManagedType.this);
factory.dispose();
m_declaration.unbind(format("Extension '%s' is missing",
extensionDeclaration.getExtensionName()));
}
} catch (InterruptedException e) {
m_declaration.unbind("Could not create Factory", e);
} catch (ExecutionException e) {
m_declaration.unbind("Factory creation throw an Exception", e);