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 annotationCompositeProcessgetCompositeProcessConsumersForScenario(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 annotationCompositeProcessgetCompositeProcessProvidersForScenario(IntegrationScenarioDefinition integrationScenario) Returns all the processes that are providers for a scenario.getConnectorById(String connectorId) GetConnectorDefinitionby its id.getConsumersForScenario(IntegrationScenarioDefinition integrationScenario) Returns all the consumers for a scenario, they can be eitherCompositeProcessDefinitionorOutboundConnectorDefinitionGet list of allInboundConnectorDefinition.getInboundConnectorsByScenarioId(String scenarioId) Get list ofInboundConnectorDefinitionby id ofIntegrationScenarioDefinition.getIntegrationScenarioBase(String compositeProcessID) Get list of allOutboundConnectorDefinition.getOutboundConnectorsByScenarioId(String scenarioId) Get list ofOutboundConnectorDefinitionby id ofIntegrationScenarioDefinition.getProvidersForScenario(IntegrationScenarioDefinition integrationScenario) Returns all the providers for a scenario, they can be eitherCompositeProcessDefinitionorInboundConnectorDefinitiongetScenarioById(String scenarioId) GetIntegrationScenarioDefinitionby its id.voidregisterClassForOnException(org.apache.camel.model.OnExceptionDefinition key, String className) Registers the class with givenclassNamefor 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:DeclarationsRegistryApiGetIntegrationScenarioDefinitionby its id.- Specified by:
getScenarioByIdin interfaceDeclarationsRegistryApi- Parameters:
scenarioId- is its id- Returns:
- Integration scenario
-
getConnectorById
Description copied from interface:DeclarationsRegistryApiGetConnectorDefinitionby its id.- Specified by:
getConnectorByIdin interfaceDeclarationsRegistryApi- Parameters:
connectorId- is its id- Returns:
- Optional connector
-
getInboundConnectors
Description copied from interface:DeclarationsRegistryApiGet list of allInboundConnectorDefinition.- Specified by:
getInboundConnectorsin interfaceDeclarationsRegistryApi- Returns:
- all inbound connectors
-
getOutboundConnectors
Description copied from interface:DeclarationsRegistryApiGet list of allOutboundConnectorDefinition.- Specified by:
getOutboundConnectorsin interfaceDeclarationsRegistryApi- Returns:
- all outbound connectors
-
getInboundConnectorsByScenarioId
Description copied from interface:DeclarationsRegistryApiGet list ofInboundConnectorDefinitionby id ofIntegrationScenarioDefinition.- Specified by:
getInboundConnectorsByScenarioIdin interfaceDeclarationsRegistryApi- Parameters:
scenarioId- is its id- Returns:
- inbound connectors
-
getOutboundConnectorsByScenarioId
Description copied from interface:DeclarationsRegistryApiGet list ofOutboundConnectorDefinitionby id ofIntegrationScenarioDefinition.- Specified by:
getOutboundConnectorsByScenarioIdin interfaceDeclarationsRegistryApi- Parameters:
scenarioId- is its id- Returns:
- outbound connectors
-
getCompositeProcessConsumerDefinitions
public List<IntegrationScenarioDefinition> getCompositeProcessConsumerDefinitions(String compositeProcessID) Description copied from interface:DeclarationsRegistryApiReturns consumers of the composite process as defined in the annotationCompositeProcess- Specified by:
getCompositeProcessConsumerDefinitionsin interfaceDeclarationsRegistryApi- Parameters:
compositeProcessID- id of the process- Returns:
- List of
IntegrationScenarioDefinition
-
getCompositeProcessProviderDefinition
public IntegrationScenarioDefinition getCompositeProcessProviderDefinition(String compositeProcessID) Description copied from interface:DeclarationsRegistryApiReturns provider of the composite process as defined in the annotationCompositeProcess- Specified by:
getCompositeProcessProviderDefinitionin interfaceDeclarationsRegistryApi- Parameters:
compositeProcessID- id of the process- Returns:
IntegrationScenarioDefinition
-
getIntegrationScenarioBase
- Specified by:
getIntegrationScenarioBasein interfaceDeclarationsRegistryApi
-
getCompositeProcessProvidersForScenario
public List<CompositeProcessDefinition> getCompositeProcessProvidersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApiReturns all the processes that are providers for a scenario.- Specified by:
getCompositeProcessProvidersForScenarioin interfaceDeclarationsRegistryApi- Parameters:
integrationScenario- that the processes provide to- Returns:
- List of
CompositeProcessDefinition
-
getCompositeProcessConsumersForScenario
public List<CompositeProcessDefinition> getCompositeProcessConsumersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApiReturns all the processes that are consumers from a scenario.- Specified by:
getCompositeProcessConsumersForScenarioin interfaceDeclarationsRegistryApi- Parameters:
integrationScenario- that the processes consumes from- Returns:
- List of
CompositeProcessDefinition
-
getProvidersForScenario
public List<IntegrationScenarioProviderDefinition> getProvidersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApiReturns all the providers for a scenario, they can be eitherCompositeProcessDefinitionorInboundConnectorDefinition- Specified by:
getProvidersForScenarioin interfaceDeclarationsRegistryApi- Parameters:
integrationScenario- that are being provided to- Returns:
- List of
IntegrationScenarioProviderDefinition
-
getConsumersForScenario
public List<IntegrationScenarioConsumerDefinition> getConsumersForScenario(IntegrationScenarioDefinition integrationScenario) Description copied from interface:DeclarationsRegistryApiReturns all the consumers for a scenario, they can be eitherCompositeProcessDefinitionorOutboundConnectorDefinition- Specified by:
getConsumersForScenarioin 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:DeclarationsRegistryApiRegisters the class with givenclassNamefor onException handling- Specified by:
registerClassForOnExceptionin interfaceDeclarationsRegistryApi- Parameters:
key- Exception definition keyclassName- Class to register
-
getClassForOnException
-