Skip to content

make name simplified & add private constructor for singleton pattern.#345

Closed
wldandan wants to merge 1 commit into
apache:masterfrom
wldandan:master
Closed

make name simplified & add private constructor for singleton pattern.#345
wldandan wants to merge 1 commit into
apache:masterfrom
wldandan:master

Conversation

@wldandan

@wldandan wldandan commented Dec 3, 2017

Copy link
Copy Markdown
Contributor
  • MicroserviceClassLoader has explicit meaning about Microservice relevant, so change the property from microserviceName to name.
  • Add private constructor for singleton pattern.


private final String appId;

private final String microserviceName;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As the microserviceName is used for a while, we cannot change the name easily due to back compatible reason.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 86.907% when pulling b55ab0d on wldandan:master into 7e4bbc4 on ServiceComb:master.

public class PrivateMicroserviceClassLoaderFactory implements MicroserviceClassLoaderFactory {
public static final MicroserviceClassLoaderFactory INSTANCE = new PrivateMicroserviceClassLoaderFactory();

private PrivateMicroserviceClassLoaderFactory() {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This change is OK. Please resubmit the patch.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.03%) to 86.945% when pulling 9671d54 on wldandan:master into 7e4bbc4 on ServiceComb:master.

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.

3 participants