Skip to content

Conversation

@xseeseesee
Copy link
Contributor

@xseeseesee xseeseesee commented Sep 14, 2020

This is part of #14127.
As discussed with @JonathanGiles offline, we decide to use statement of export ... to ... for the qualified exports. This is because the impls inside fluentcore of azure-resourcemanager-resources are common classes across mutiple modules, while they are not required to expose to end users.

Inside module-info, we apply a few requires transitive as there are a few methods allowing with*Resource*(Creatable<*Resource*>) provided by other services. For example, there is method withNewStorageAccount(Creatable<StorageAccount>) in azure-resourcemanager-compute, of which the StorageAccount comes from azure-resourcemanager-storage.

Copy link
Member

@srnagar srnagar left a comment

Choose a reason for hiding this comment

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

Looks good! Just a couple of questions that we need to resolve.

Comment on lines +7 to +8
requires transitive com.azure.resourcemanager.network;
requires transitive com.azure.resourcemanager.storage;
Copy link
Member

Choose a reason for hiding this comment

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

Do you need network and storage also to be transitive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fluent interfaces, we provide convenient configs when creating virtual machine, like withExistingPrimaryNetwork(Network network), withExistingStorageAccount(StorageAccount storageAccount). The Network comes from module of com.azure.resourcemanager.network, and the StorageAccount is from com.azure.resourcemanager.storage.

Thus it requires transitive keyword. Otherwise, the end users have to add additional requires statement explicitly when calling withExistingPrimaryNetwork/withExistingStorageAccount.

@xseeseesee xseeseesee merged commit bf8a673 into Azure:master Sep 21, 2020
@xseeseesee xseeseesee deleted the add-mgmt-module-info branch September 21, 2020 05:55
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.

4 participants