Class AbstractRegistrySourceConnector

    • Constructor Detail

      • AbstractRegistrySourceConnector

        public AbstractRegistrySourceConnector​(java.lang.String identifier,
                                               boolean includeInDefaultViews)
        Creates an instance of the connector with the given identifier. The identifier should be unique if you want to add it to a registry as a source.
        Parameters:
        identifier - of the newly created connector
        includeInDefaultViews - true if the specifications in the connector should be included in default views
    • Method Detail

      • addListener

        public void addListener​(IConnectorListener listener)
        Description copied from interface: IRegistrySourceConnector
        Add a listener to get updates on changes in the query specifications available from the connector. When the listener is added, the connector is expected to call the listener with each existing query specification.
        Specified by:
        addListener in interface IRegistrySourceConnector
        Parameters:
        listener - that should be added
      • removeListener

        public void removeListener​(IConnectorListener listener)
        Description copied from interface: IRegistrySourceConnector
        Removes an already registered listener and stops sending updates. The connector is not required to send any updates before returning from this method, but should not send any events after this method returns.
        Specified by:
        removeListener in interface IRegistrySourceConnector
        Parameters:
        listener - that should be removed
      • sendQuerySpecificationsToListener

        protected abstract void sendQuerySpecificationsToListener​(IConnectorListener listener)
        Subclasses should send add notifications for each specification in the connector to the given listener.
        Parameters:
        listener - that should receive the notifications