-
Notifications
You must be signed in to change notification settings - Fork 170
Router refactor to beanfactory #2514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
2756d0f
refactor: move globalInterceptor to beanFactory
christiangoerdes 1e2bede
Merge branch 'master' into router-refactor-to-beanfactory
predic8 e76ce7f
refactor: streamline exception messages, improve logging, and enhance…
predic8 e21be9a
feat: global interceptor support for YAML
predic8 dfdca86
refactor: streamline imports, remove unused methods, and improve exce…
predic8 520164b
Merge branch 'master' into router-refactor-to-beanfactory
predic8 de82e1f
refactor: remove unused `setRouter` method from `Transport` and enhan…
predic8 cf52d74
Merge remote-tracking branch 'origin/router-refactor-to-beanfactory' …
predic8 adbe257
refactor: remove unused imports, simplify package structure, and clea…
predic8 21ae9a1
refactor: remove unused imports, simplify package structure, and clea…
predic8 6346a37
refactor: extend and streamline BeanRegistry integration in Router, i…
predic8 88af125
refactor: streamline imports in `GenericYamlParserTest`, improve read…
predic8 2df4c3b
Merge branch 'master' into router-refactor-to-beanfactory
predic8 4d3917e
refactor: simplify `registerIfAbsent` usage in `Router` and `BeanRegi…
predic8 d773f92
refactor: simplify `registerIfAbsent` by removing `name` parameter, s…
predic8 961a43e
Merge remote-tracking branch 'origin/router-refactor-to-beanfactory' …
predic8 5369b43
refactor: remove duplicate `openPorts` field from `Router`
predic8 a197d78
refactor: enhance concurrency handling in `BeanRegistryImplementation…
predic8 612cef6
refactor: replace `Router.init` with `Router.initByXML`, improve thre…
predic8 7be9eab
refactor: remove redundant `Exception` declarations, simplify `tearDo…
predic8 3d4c808
refactor: simplify Router lifecycle methods, streamline test setup/te…
predic8 c9dd5c4
refactor: streamline imports in test files and remove redundant `Exce…
predic8 bf9f618
refactor: improve thread-safety in `registerIfAbsent` by introducing …
predic8 4be156a
refactor: update test lifecycle methods to use `@BeforeAll`/`@AfterAl…
predic8 7564a5e
refactor: refactor `Router` lifecycle methods, remove `openPorts` han…
predic8 3e5715f
refactor: streamline imports, remove redundant declarations, and impr…
predic8 1c5f812
refactor: improve Router lifecycle management, update test setup/tear…
predic8 f873164
refactor: replace `Router.initByXML` with `RouterBootstrap.initByXML`…
predic8 e221d3a
refactor: make `router` field `final` in `RuleReinitializer` to ensur…
predic8 6dd1ab6
refactor: improve `Router` lifecycle methods, enhance thread-safety, …
predic8 2a6a7cc
refactor: remove unnecessary `Exception` declaration from `initOasi` …
predic8 be5387d
refactor: enhance `Router` lifecycle handling, improve thread-safety,…
predic8 86f1857
refactor: add TODO for replacing `backgroundInitializer` with virtual…
predic8 9d8d0bf
Merge branch 'master' into router-refactor-to-beanfactory
predic8 6ce17f2
merge
predic8 9955a07
refactor: replace `Router` with `HttpRouter` in test files and update…
predic8 0308efc
Merge branch 'master' into router-refactor-to-beanfactory
predic8 cc5fa67
refactor: improve thread-safety in `DefaultHotDeployer`, enhance logg…
predic8 27317a6
Merge remote-tracking branch 'origin/router-refactor-to-beanfactory' …
predic8 7a8e80c
refactor: replace `Router` with `IRouter` for better abstraction and …
predic8 6539c3d
refactor: introduce `AbstractRouter` for shared functionality, replac…
predic8 1afe5be
refactor: remove `IRouter` interface, replace with `DefaultRouter` or…
predic8 4b9b06f
refactor: replace `router.getConfig()` with `router.getConfiguration(…
predic8 df16814
refactor: replace `router.shutdown()` with `router.stop()` and introd…
predic8 feea582
refactor: improve thread-safety and synchronization in `BeanRegistryI…
predic8 1623f85
refactor: extend timeout in `MassivelyParallelTest` to improve test s…
predic8 4166d52
improved synchronization
rrayst 8575853
doc
rrayst c169acf
small improvements
rrayst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
core/src/main/java/com/predic8/membrane/core/AbstractRouter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /* Copyright 2025 predic8 GmbH, www.predic8.com | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. */ | ||
|
|
||
| package com.predic8.membrane.core; | ||
|
|
||
| import com.predic8.membrane.core.proxies.*; | ||
| import org.slf4j.*; | ||
|
|
||
| public abstract class AbstractRouter implements Router, MainComponents { | ||
|
|
||
| private static final Logger log = LoggerFactory.getLogger(DefaultRouter.class); | ||
|
|
||
| protected void initProxies() { | ||
| log.debug("Initializing proxies."); | ||
| for (Proxy proxy : getRuleManager().getRules()) { | ||
| log.debug("Initializing proxy {}.", proxy.getName()); | ||
| proxy.init(this); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.