-
Notifications
You must be signed in to change notification settings - Fork 143
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
Refactoring around WebBundleDescriptor and EjbBundleDescriptor #24337
Refactoring around WebBundleDescriptor and EjbBundleDescriptor #24337
Commits on Mar 19, 2023
-
Refactored WebBundleDescriptors
- Target: make unit tests possible Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for aa2137e - Browse repository at this point
Copy the full SHA aa2137eView commit details -
Further refactoring - replacing unused/obsoleted methods, added javadocs
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 466b608 - Browse repository at this point
Copy the full SHA 466b608View commit details -
DeploymentDescriptorNode now supports compatible parameters
- originally it required an exact match of the parameter's type - now it first tries the exact match, when no such method exists it tries to find any compatible method of the same name. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 04ed447 - Browse repository at this point
Copy the full SHA 04ed447View commit details -
EjbBundleRefactoring - first step
- instead of abstract methods moving their implementation as a default impl - It is quite complicated work affecting many places, so I will do rather smaller steps. - about generics - the coverage is not perfect because of cyclic dependencies Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for c1bdc9c - Browse repository at this point
Copy the full SHA c1bdc9cView commit details -
ResourceAnnotationControl - moved copy pasted code
- all classes used the same method. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for e6bef17 - Browse repository at this point
Copy the full SHA e6bef17View commit details -
Partially reverted incompatible changes in EJB descriptors
- broke connectors in tests; maybe it wouldn't be an issue for user, but I am not sure with that. I will find safer path. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for c9343b0 - Browse repository at this point
Copy the full SHA c9343b0View commit details -
Moving another methods to EjbBundleDescriptor + javadoc
- default implementations - EjbApplicationExceptionInfo Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for fb89c21 - Browse repository at this point
Copy the full SHA fb89c21View commit details -
Tracking evolution of the ApplicationValidatorTest with the refactoring
- Issue: I tried to use mocking, but I have found that it doesn't work well and even if, it would not cover too much of the implementation. - dol and ejb-container have too many relations, in fact the abstraction was unusable and worthless (and even undocumented). - I can create mocks for interfaces but I can't use them for validator. - I can create half-initialized mock of the abstract class, but it throws exceptions which take too much time to investigate and finally I find that the issue is the mock, not the code I wanted to test. - Same would apply for custom implementations (like is the only one, ejb-container) - too much details matter. - In practice: dol should have much better API, OR all descriptors and nodes whould move to DOL. They can be extended and used in ejb-container, but must have some basic consistent meaningful implementation. - So I do some basic steps forward now. - Final result: test covering bug we have noticed in logs + the fix not breaking anything else. Side effect result: easier future changes. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 9bb9ebd - Browse repository at this point
Copy the full SHA 9bb9ebdView commit details -
Fixed HK2 dependency - securityRoleMapperFactoryis optional
- it was already checked for null Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 1f5ba67 - Browse repository at this point
Copy the full SHA 1f5ba67View commit details -
EjbBundleDescriptor - moving more fields to the parent
- This is safe as there is only one child of this abstract class Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for e36eec8 - Browse repository at this point
Copy the full SHA e36eec8View commit details -
EjbBundleDescriptorImpl cleanup - old deprecations, javadoc
- Unused methods removed - Used methods documented (at least minimal notes) - Deprecated XML nodes from GF 3.1 marked as deprecated and removed code which used them but was worthless. Now they should be just tolerated. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 2851a9d - Browse repository at this point
Copy the full SHA 2851a9dView commit details -
ComponentValidator formatting + fixed possible NPE
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for bb5199f - Browse repository at this point
Copy the full SHA bb5199fView commit details -
Long process of resolving DOL cyclic dependencies resolved via reflec…
…tion - one of intermediate steps - moving methods Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for f7a9771 - Browse repository at this point
Copy the full SHA f7a9771View commit details -
More strict DeploymentDescriptorNode - throwing exceptions
- validators cover possible issues just partially - better break deploy asap with more helpful info, especially when it is about glassfish issues. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 5ab479d - Browse repository at this point
Copy the full SHA 5ab479dView commit details -
Fixed comparison (carType() can return null!)
- broken in recent commit of the same PR - also fixed some logs and formatting Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 11bff77 - Browse repository at this point
Copy the full SHA 11bff77View commit details -
Moving classes and methods, javadocs, fixed logging nullpointers
- most of issues were more visible when I caused some inconsistency - the commit is unfortunately huge, but necessary - the architecture of the DOL is broken, always was - depends on reflection across modules and packages Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 0deee93 - Browse repository at this point
Copy the full SHA 0deee93View commit details -
- Fixes the issue when DOL used nulls because singletons weren't found in HK2 - Affected appclient, tests, validations, processing descriptors, etc. Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 96e9429 - Browse repository at this point
Copy the full SHA 96e9429View commit details -
Fixed resource validation + partial test coverage
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 56a6b13 - Browse repository at this point
Copy the full SHA 56a6b13View commit details -
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for a5e7374 - Browse repository at this point
Copy the full SHA a5e7374View commit details -
Fixed nullpointers in connectors-runtime
- seen when deploying broken CargoTracker Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for ea3d9f1 - Browse repository at this point
Copy the full SHA ea3d9f1View commit details -
Removed unused import (Disabled) from test
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 224fb08 - Browse repository at this point
Copy the full SHA 224fb08View commit details
Commits on Mar 20, 2023
-
Removed unused methods and dead ends, smaller optimizations
- foreach, avoiding for-keys-find-value, Vector replaced by ArrayList - formatting, generics, javadocs Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
Configuration menu - View commit details
-
Copy full SHA for 14602ed - Browse repository at this point
Copy the full SHA 14602edView commit details