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

Introducing aliases for Beans #55

Merged
merged 2 commits into from
Aug 20, 2016

Conversation

shochdoerfer
Copy link
Member

Bean instances can define one additional alias to be able to work around the character limitations given by method names ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*). This change will supersede the current bean normalization naming conventions.

The following rules apply:

  • When looking for a bean the bean method names are preferred before aliases
  • the first defined alias wins
  • aliases cannot be used internally in the configuration class. Aliases are only taken into account when calling get() and has() on the AnnotationBeanFactory.

One Bean instance can define one additional alias to be able
to work around the character limitations given by method names
([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*).

This change will supersede the current bean normalization naming
conventions.
@shochdoerfer shochdoerfer merged commit 3361f45 into bitExpert:master Aug 20, 2016
@shochdoerfer shochdoerfer added this to the 0.5.0 milestone Aug 21, 2016
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

1 participant