public class QueryGroupProviderSourceConnector extends AbstractRegistrySourceConnector
IQueryGroupProvider
to provide a query specifications into the
registry. The query group can be later updated which triggers the removal of all specifications of the old group and
the addition of all specifications from the new group.listeners
Constructor and Description |
---|
QueryGroupProviderSourceConnector(java.lang.String identifier,
IQueryGroupProvider provider,
boolean includeInDefaultViews)
Creates an instance of the connector with the given identifier and the query group provider.
|
Modifier and Type | Method and Description |
---|---|
protected void |
sendQuerySpecificationsToListener(IConnectorListener listener)
Subclasses should send add notifications for each specification in the connector to the given listener.
|
void |
setQueryGroupProvider(IQueryGroupProvider queryGroupProvider)
Update the query group of the connector, which triggers the removal of all specifications on the old group and
addition of all specifications in the given group.
|
addListener, getIdentifier, includeSpecificationsInDefaultViews, removeListener
public QueryGroupProviderSourceConnector(java.lang.String identifier, IQueryGroupProvider provider, boolean includeInDefaultViews)
identifier
- of the newly created connectorprovider
- that contains the query specifications handled by the connectorincludeInDefaultViews
- true if the specifications in the connector should be included in default viewspublic void setQueryGroupProvider(IQueryGroupProvider queryGroupProvider)
queryGroupProvider
- the queryGroupProvider to setincludeInDefaultViews
- true if the specifications in the connector should be included in default viewsprotected void sendQuerySpecificationsToListener(IConnectorListener listener)
AbstractRegistrySourceConnector
sendQuerySpecificationsToListener
in class AbstractRegistrySourceConnector
listener
- that should receive the notifications