Class MetadataProviderContainer

All Implemented Interfaces:
AutoCloseable, Comparable<MetadataProviderContainer>, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, ServiceableComponent<MetadataResolver>, Aware, DisposableBean, ApplicationContextAware

public class MetadataProviderContainer extends AbstractServiceableComponent<MetadataResolver> implements Comparable<MetadataProviderContainer>, DisposableBean
This class is a sortable container for MetadataResolvers, wrapped into a serviceable component. It explicitly implements DisposableBean because is contained in the Metadata Provider service's ApplicationContext and so it has a Spring lifecycle. With a Disposable garnish Spring will call the class's AutoCloseable.close() method and for AbstractServiceableComponent that is not idempotent, so during app context teardown we get a wanting IDP-2487.