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

Name generation refactoring #1

Closed
wants to merge 2 commits into from
Closed

Name generation refactoring #1

wants to merge 2 commits into from

Conversation

AlexKolonitsky
Copy link
Contributor

Name generation refactoring: …

  1. Make Smart and Base naming strategies independent in order to make behavior of Smart strategy consistent in all cases
  2. Rename NamingStrategy to NameGenerator
  3. Split NamedObjectFactory into
    3.1) NameChecker which responsible for checking is name available in naming context i.e. EntityAttribute name within Entity
    3.2) UniqueNameGenerator which in charge of returning unique name within passed naming context
  4. refactor copy/past action in order to use introduced mechanism for name generation
  5. move all classes responsible for name generation and checking into "naming" package

1) Make Smart and Base naming strategies independent in order to make behavior of Smart strategy consistent in all cases
2) Rename NamingStrategy to NameGenerator
3) Split NamedObjectFactory into
3.1) NameChecker which responsible for checking is name available in naming context i.e. EntityAttribute name within Entity
3.2) UniqueNameGenerator which in charge of returning unique name within passed naming context
4) refactor copy/past action in order to use introduced mechanism for name generation
5) move all classes responsible for name generation and checking into "naming" package
behavior of Smart strategy consistent in all cases
2) Rename NamingStrategy to NameGenerator
3) Split NamedObjectFactory into
3.1) NameChecker which responsible for checking is name available in
naming context i.e. EntityAttribute name within Entity
3.2) UniqueNameGenerator which in charge of returning unique name
within passed naming context
4) refactor copy/past action in order to use introduced mechanism for
name generation
5) move all classes responsible for name generation and checking into
"naming" package
@andrus
Copy link
Contributor

andrus commented Aug 14, 2014

Opened a Jira for it - CAY-1942 https://issues.apache.org/jira/browse/CAY-1942

@andrus
Copy link
Contributor

andrus commented Aug 14, 2014

Applied. I did some cleanup per bd22051 , but nothing major, mostly cosmetics and licensing. You can close the pull request. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants