Skip to content
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

fix #6306. support TypeBuilder sort #6365

Merged
merged 5 commits into from Jun 29, 2020
Merged

Conversation

cvictory
Copy link
Contributor

as the title.

@@ -28,6 +28,11 @@
@SPI
public interface TypeBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

Recommend to implement the interface org.apache.dubbo.common.lang.Prioritized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已经修改。

@@ -36,14 +37,20 @@
*/
public class TypeDefinitionBuilder {
private static final Logger logger = LoggerFactory.getLogger(TypeDefinitionBuilder.class);
private static final List<TypeBuilder> BUILDERS;
static final List<TypeBuilder> BUILDERS;

static {
List<TypeBuilder> builders = new ArrayList<>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Then invoke org.apache.dubbo.common.extension.ExtensionLoader#getSupportedExtensionInstances() using the internal sorting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@cvictory cvictory added this to the 2.7.8 milestone Jun 24, 2020
@mercyblitz mercyblitz merged commit 80acc24 into apache:master Jun 29, 2020
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.

None yet

2 participants