Class RoutesRegistry
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.SimpleEventNotifierSupport
one.x1f.sip.foundation.core.declarative.RoutesRegistry
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.EventNotifier,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@Service
public class RoutesRegistry
extends org.apache.camel.support.SimpleEventNotifierSupport
Internal registry that holds mapping between declarative elements and Camel Routes.
For internal use only
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateRouteIdForConnector(RouteRole role, ConnectorDefinition connector, Object... suffixes) generateRouteIdForScenarioOrchestrator(IntegrationScenarioDefinition scenario, String... suffixes) generateRouteIdForSoapService(String soapServiceName) generateRouteInfo(String routeId) generateRouteInfoList(org.apache.camel.Endpoint endpoint) getConnectorIdByRouteId(String routeId) getExternalEndpointInfosForConnector(ConnectorDefinition connectorDefinition) getRouteIdByConnectorIdAndRole(String connectorId, RouteRole role) getRoutesInfo(ConnectorDefinition connectorDefinition) booleanisEnabled(org.apache.camel.spi.CamelEvent event) On CamelContextStartedEvent execute this class's event listener - notify()voidnotify(org.apache.camel.spi.CamelEvent event) Trigger caching of routes and endpoints mappings(package private) voidprefillEndpointRouteMappings(org.apache.camel.CamelContext camelContext) Methods inherited from class org.apache.camel.support.SimpleEventNotifierSupport
isDisabled, isIgnoreCamelContextEvents, isIgnoreCamelContextInitEvents, isIgnoreExchangeAsyncProcessingStartedEvents, isIgnoreExchangeCompletedEvent, isIgnoreExchangeCreatedEvent, isIgnoreExchangeEvents, isIgnoreExchangeFailedEvents, isIgnoreExchangeRedeliveryEvents, isIgnoreExchangeSendingEvents, isIgnoreExchangeSentEvents, isIgnoreRouteEvents, isIgnoreServiceEvents, isIgnoreStepEvents, setIgnoreCamelContextEvents, setIgnoreCamelContextInitEvents, setIgnoreExchangeAsyncProcessingStartedEvents, setIgnoreExchangeCompletedEvent, setIgnoreExchangeCreatedEvent, setIgnoreExchangeEvents, setIgnoreExchangeFailedEvents, setIgnoreExchangeRedeliveryEvents, setIgnoreExchangeSendingEvents, setIgnoreExchangeSentEvents, setIgnoreRouteEvents, setIgnoreServiceEvents, setIgnoreStepEvents, setupIgnoreMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
SIP_CONNECTOR_PREFIX
- See Also:
-
SIP_SOAP_SERVICE_PREFIX
- See Also:
-
SIP_SCENARIO_ORCHESTRATOR_PREFIX
- See Also:
-
SIP_COMPOSITE_ORCHESTRATOR_PREFIX
- See Also:
-
-
Constructor Details
-
RoutesRegistry
-
-
Method Details
-
isEnabled
public boolean isEnabled(org.apache.camel.spi.CamelEvent event) On CamelContextStartedEvent execute this class's event listener - notify()- Specified by:
isEnabledin interfaceorg.apache.camel.spi.EventNotifier- Overrides:
isEnabledin classorg.apache.camel.support.SimpleEventNotifierSupport
-
notify
public void notify(org.apache.camel.spi.CamelEvent event) Trigger caching of routes and endpoints mappings -
generateRouteIdForConnector
public String generateRouteIdForConnector(RouteRole role, ConnectorDefinition connector, Object... suffixes) -
generateRouteIdForSoapService
-
generateRouteIdForScenarioOrchestrator
public String generateRouteIdForScenarioOrchestrator(IntegrationScenarioDefinition scenario, String... suffixes) -
generateRouteIdForCompositeScenarioOrchestrator
public String generateRouteIdForCompositeScenarioOrchestrator(CompositeProcessDefinition process, String suffix) -
generateRouteInfo
-
getRouteIdByConnectorIdAndRole
-
getRoutesInfo
-
getConnectorIdByRouteId
-
getExternalEndpointInfosForConnector
public List<EndpointInfo> getExternalEndpointInfosForConnector(ConnectorDefinition connectorDefinition) -
generateRouteInfoList
public List<RouteDeclarativeStructureInfo> generateRouteInfoList(org.apache.camel.Endpoint endpoint) -
prefillEndpointRouteMappings
void prefillEndpointRouteMappings(org.apache.camel.CamelContext camelContext)
-