Skip to content

[SCB-2237] allow InjectProperties inject to spring bean instance#2314

Merged
liubao68 merged 1 commit intoapache:masterfrom
wujimin:SCB-2237-make-code-of-PriorityProperty-easier-to-read
Mar 27, 2021
Merged

[SCB-2237] allow InjectProperties inject to spring bean instance#2314
liubao68 merged 1 commit intoapache:masterfrom
wujimin:SCB-2237-make-code-of-PriorityProperty-easier-to-read

Conversation

@wujimin
Copy link
Contributor

@wujimin wujimin commented Mar 25, 2021

  1. not create multiple PriorityProperty instances for same parameter

  2. refresh all instances after configuration changed

  3. allow InjectProperties inject to spring bean instance

@wujimin wujimin requested a review from liubao68 March 25, 2021 01:37
@wujimin wujimin force-pushed the SCB-2237-make-code-of-PriorityProperty-easier-to-read branch from 174693d to fe9693d Compare March 26, 2021 07:12
@wujimin wujimin changed the title [SCB-2237] make code of PriorityProperty easier to read [SCB-2237] allow InjectProperties inject to spring bean instance Mar 26, 2021
## limitations under the License.
## ---------------------------------------------------------------------------

servicecomb-config-order: -1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add this yaml?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discovery client alway invoke with endpoint, no need other logic, eg: auth client

}

public void setEnabled(boolean enabled) {
public InspectorConfig setEnabled(boolean enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this usage for this feature to demo / integration tests? so that we can add documents using the demo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a shortcut for https://docs.servicecomb.io/java-chassis/zh_CN/config/read-config/
declare a class with @InjectProperties to be a bean, that's enough.

@liubao68 liubao68 merged commit e608843 into apache:master Mar 27, 2021
@wujimin wujimin deleted the SCB-2237-make-code-of-PriorityProperty-easier-to-read branch March 27, 2021 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants