-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Add virtual field pattern #52
Comments
Thanks, we'll look into it. |
Ok I've read the article and can see what can be done with virtual extension methods. There is discussion about it on this mailing list and it seems that Mr. Brian Goetz, who is the Oracle's Java Language Architect, is strongly against using Java 8 this way, for behavior and state multiple inheritance. So I'm thinking that this is hardly a best practise or recommended solution a problem. |
Reopened, see #638 |
I will implement an example for this. But first I need to go read your contribution guidelines. |
Ok @reegnz |
@reegnz are you still implementing this? |
Slowly but surely. |
@reegnz how slowly? I will mark this issue ready for taking again. |
No problem. I don't develop Java nowadays. |
Hi @iluwatar , I can add a simple app for virtual-pattern but when I studied the code a little, I saw some files that need to be added. How can I create these files. Or if I just add the sample project, would it be enough? |
What files do you mean? I expect that implementing this pattern brings quite many new files anyway. You're not talking about source code files, are you? |
I made a png file for uml diagrams but not similar with other samples and .puml file and also I saw a block almost every sample as "The MIT License
|
puml file is autogenerated from code. From that you can generate the image and it will be similar as in other pattern examples. Similarly there is a license checker plugin in the project that will add the missing licenses for you. |
@iluwatar Yes, I saw the other samples, and I researched a little and I found plantUml plugin and I tried to generate them but still I can not auto generate them. Also, I researched about auto generating for uml and png part but still could not. I implement a sample for virtual field pattern and also blackboard but just left etc folders |
Can you give a link to your code? I could take a look. |
@iluwatar , I forked the project and added a module as virtual-field, and I can not push my changes its getting denied error. Some permission problems or anything else ? |
There shouldn't be any problems if you are trying to push to your forked repository. I can imagine that it fails if you are trying to push to the master repository - that's only allowed for collaborators. |
typo in work Providers
More information about the pattern: https://stackoverflow.com/questions/47101072/java-virtual-field-pattern |
There's a new (I think) pattern called the Virtual field pattern, introduced in Java 8. https://kerflyn.wordpress.com/2012/07/09/java-8-now-you-have-mixins/ Scroll half way through till you find "Another Approach".
The text was updated successfully, but these errors were encountered: