public class SpecificationMapSourceConnector extends AbstractRegistrySourceConnector
listeners| Constructor and Description |
|---|
SpecificationMapSourceConnector(java.lang.String identifier,
boolean includeInDefaultViews)
Creates an instance of the connector with the given identifier.
|
SpecificationMapSourceConnector(java.lang.String identifier,
java.util.Set<IQuerySpecificationProvider> specificationProviders,
boolean includeInDefaultViews)
Creates an instance of the connector with the given identifier and fills it up with the given specification
providers.
|
SpecificationMapSourceConnector(java.lang.String identifier,
SpecificationMapSourceConnector connector,
boolean includeInDefaultViews)
Creates an instance of the connector with the given identifier and fills it up with the specification providers
from the given
SpecificationMapSourceConnector. |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuerySpecificationProvider(IQuerySpecificationProvider provider)
Adds a query specification to the connector.
|
java.util.Set<java.lang.String> |
getQuerySpecificationFQNs() |
boolean |
hasQuerySpecificationFQN(java.lang.String fullyQualifiedName) |
void |
removeQuerySpecificationProvider(java.lang.String fullyQualifiedName)
Remove a specification that has been added with the given FQN.
|
protected void |
sendQuerySpecificationsToListener(IConnectorListener listener)
Subclasses should send add notifications for each specification in the connector to the given listener.
|
addListener, getIdentifier, includeSpecificationsInDefaultViews, removeListenerpublic SpecificationMapSourceConnector(java.lang.String identifier,
boolean includeInDefaultViews)
identifier - of the newly created connectorincludeInDefaultViews - true if the specifications in the connector should be included in default viewspublic SpecificationMapSourceConnector(java.lang.String identifier,
java.util.Set<IQuerySpecificationProvider> specificationProviders,
boolean includeInDefaultViews)
identifier - of the newly created connectorspecificationProviders - the initial set of specifications in the connectorincludeInDefaultViews - true if the specifications in the connector should be included in default viewspublic SpecificationMapSourceConnector(java.lang.String identifier,
SpecificationMapSourceConnector connector,
boolean includeInDefaultViews)
SpecificationMapSourceConnector. The identifier should be unique if you want to add it to
a registry as a source.identifier - of the newly created connectorconnector - that contains the specifications to copy into the new instanceincludeInDefaultViews - true if the specifications in the connector should be included in default viewspublic void addQuerySpecificationProvider(IQuerySpecificationProvider provider)
IQuerySpecification object, use SingletonQuerySpecificationProvider.provider - to add to the connectorjava.lang.IllegalArgumentException - if the connector already contains a specification with the same FQNpublic void removeQuerySpecificationProvider(java.lang.String fullyQualifiedName)
fullyQualifiedName - java.util.NoSuchElementException - if the connector does not contain a specification with the given FQNpublic java.util.Set<java.lang.String> getQuerySpecificationFQNs()
public boolean hasQuerySpecificationFQN(java.lang.String fullyQualifiedName)
fullyQualifiedName - that is checkedprotected void sendQuerySpecificationsToListener(IConnectorListener listener)
AbstractRegistrySourceConnectorsendQuerySpecificationsToListener in class AbstractRegistrySourceConnectorlistener - that should receive the notifications