Class DeclarationsRegistry
java.lang.Object
one.x1f.sip.foundation.core.declarative.DeclarationsRegistry
- All Implemented Interfaces:
DeclarationsRegistryApi
-
Constructor Summary
ConstructorsConstructorDescriptionDeclarationsRegistry
(List<ConnectorGroupDefinition> autowiredConnectorGroups, List<IntegrationScenarioDefinition> autowiredScenarios, List<ConnectorDefinition> autowiredConnectors, List<CompositeProcessDefinition> compositeProcessDefinitions, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetClassForOnException
(org.apache.camel.model.OnExceptionDefinition key) getCompositeProcessConsumerDefinitions
(String compositeProcessID) Returns consumers of the composite process as defined in the annotationCompositeProcess
getCompositeProcessConsumersForScenario
(IntegrationScenarioDefinition integrationScenario) Returns all the processes that are consumers from a scenario.getCompositeProcessProviderDefinition
(String compositeProcessID) Returns provider of the composite process as defined in the annotationCompositeProcess
getCompositeProcessProvidersForScenario
(IntegrationScenarioDefinition integrationScenario) Returns all the processes that are providers for a scenario.getConnectorById
(String connectorId) GetConnectorDefinition
by its id.getConsumersForScenario
(IntegrationScenarioDefinition integrationScenario) Returns all the consumers for a scenario, they can be eitherCompositeProcessDefinition
orOutboundConnectorDefinition
Get list of allInboundConnectorDefinition
.getInboundConnectorsByScenarioId
(String scenarioId) Get list ofInboundConnectorDefinition
by id ofIntegrationScenarioDefinition
.getIntegrationScenarioBase
(String compositeProcessID) Get list of allOutboundConnectorDefinition
.getOutboundConnectorsByScenarioId
(String scenarioId) Get list ofOutboundConnectorDefinition
by id ofIntegrationScenarioDefinition
.getProvidersForScenario
(IntegrationScenarioDefinition integrationScenario) Returns all the providers for a scenario, they can be eitherCompositeProcessDefinition
orInboundConnectorDefinition
getScenarioById
(String scenarioId) GetIntegrationScenarioDefinition
by its id.void
registerClassForOnException
(org.apache.camel.model.OnExceptionDefinition key, String className) Registers the class with givenclassName
for onException handling
-
Constructor Details
-
DeclarationsRegistry
public DeclarationsRegistry(List<ConnectorGroupDefinition> autowiredConnectorGroups, List<IntegrationScenarioDefinition> autowiredScenarios, List<ConnectorDefinition> autowiredConnectors, List<CompositeProcessDefinition> compositeProcessDefinitions, org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
getScenarioById
Description copied from interface:DeclarationsRegistryApi
GetIntegrationScenarioDefinition
by its id.- Specified by:
getScenarioById
in interfaceDeclarationsRegistryApi
- Parameters:
scenarioId
- is its id- Returns:
- Integration scenario
-
getConnectorById
Description copied from interface:DeclarationsRegistryApi
GetConnectorDefinition
by its id.- Specified by:
getConnectorById
in interfaceDeclarationsRegistryApi
- Parameters:
connectorId
- is its id- Returns:
- Optional connector
-
getInboundConnectors
Description copied from interface:DeclarationsRegistryApi
Get list of allInboundConnectorDefinition
.- Specified by:
getInboundConnectors
in interfaceDeclarationsRegistryApi
- Returns:
- all inbound connectors
-
getOutboundConnectors
Description copied from interface:DeclarationsRegistryApi
Get list of allOutboundConnectorDefinition
.- Specified by:
getOutboundConnectors
in interfaceDeclarationsRegistryApi
- Returns:
- all outbound connectors
-
getInboundConnectorsByScenarioId
Description copied from interface:DeclarationsRegistryApi
Get list ofInboundConnectorDefinition
by id ofIntegrationScenarioDefinition
.- Specified by:
getInboundConnectorsByScenarioId
in interfaceDeclarationsRegistryApi
- Parameters:
scenarioId
- is its id- Returns:
- inbound connectors
-
getOutboundConnectorsByScenarioId
Description copied from interface:DeclarationsRegistryApi
Get list ofOutboundConnectorDefinition
by id ofIntegrationScenarioDefinition
.- Specified by:
getOutboundConnectorsByScenarioId
in interfaceDeclarationsRegistryApi
- Parameters:
scenarioId
- is its id- Returns:
- outbound connectors
-
getCompositeProcessConsumerDefinitions
public List<IntegrationScenarioDefinition> getCompositeProcessConsumerDefinitions(String compositeProcessID) Description copied from interface:DeclarationsRegistryApi
Returns consumers of the composite process as defined in the annotationCompositeProcess
- Specified by:
getCompositeProcessConsumerDefinitions
in interfaceDeclarationsRegistryApi
- Parameters:
compositeProcessID
- id of the process- Returns:
- List of
IntegrationScenarioDefinition
-
getCompositeProcessProviderDefinition
public IntegrationScenarioDefinition getCompositeProcessProviderDefinition(String compositeProcessID) Description copied from interface:DeclarationsRegistryApi
Returns provider of the composite process as defined in the annotationCompositeProcess
- Specified by:
getCompositeProcessProviderDefinition
in interfaceDeclarationsRegistryApi
- Parameters:
compositeProcessID
- id of the process- Returns:
IntegrationScenarioDefinition
-
getIntegrationScenarioBase
- Specified by:
getIntegrationScenarioBase
in interfaceDeclarationsRegistryApi
-
getCompositeProcessProvidersForScenario
public List<CompositeProcessDefinition> getCompositeProcessProvidersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApi
Returns all the processes that are providers for a scenario.- Specified by:
getCompositeProcessProvidersForScenario
in interfaceDeclarationsRegistryApi
- Parameters:
integrationScenario
- that the processes provide to- Returns:
- List of
CompositeProcessDefinition
-
getCompositeProcessConsumersForScenario
public List<CompositeProcessDefinition> getCompositeProcessConsumersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApi
Returns all the processes that are consumers from a scenario.- Specified by:
getCompositeProcessConsumersForScenario
in interfaceDeclarationsRegistryApi
- Parameters:
integrationScenario
- that the processes consumes from- Returns:
- List of
CompositeProcessDefinition
-
getProvidersForScenario
public List<IntegrationScenarioProviderDefinition> getProvidersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApi
Returns all the providers for a scenario, they can be eitherCompositeProcessDefinition
orInboundConnectorDefinition
- Specified by:
getProvidersForScenario
in interfaceDeclarationsRegistryApi
- Parameters:
integrationScenario
- that are being provided to- Returns:
- List of
IntegrationScenarioProviderDefinition
-
getConsumersForScenario
public List<IntegrationScenarioConsumerDefinition> getConsumersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApi
Returns all the consumers for a scenario, they can be eitherCompositeProcessDefinition
orOutboundConnectorDefinition
- Specified by:
getConsumersForScenario
in interfaceDeclarationsRegistryApi
- Parameters:
integrationScenario
- that are being consumed from- Returns:
- List of
IntegrationScenarioProviderDefinition
-
registerClassForOnException
public void registerClassForOnException(org.apache.camel.model.OnExceptionDefinition key, String className) Description copied from interface:DeclarationsRegistryApi
Registers the class with givenclassName
for onException handling- Specified by:
registerClassForOnException
in interfaceDeclarationsRegistryApi
- Parameters:
key
- Exception definition keyclassName
- Class to register
-
getClassForOnException
-