←Older revision | Revision as of 03:28, 5 April 2022 | ||
Line 2: | Line 2: | ||
* Three classes of [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/test/org/netbeans/geekout/demo/impl/GeekoutProtocolFactory.java mostly boiler plate code] using regular {{JDK|java/util|ServiceLoader}} infrastructure that requires all registered protocol handlers to be instantiated at begining | * Three classes of [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/test/org/netbeans/geekout/demo/impl/GeekoutProtocolFactory.java mostly boiler plate code] using regular {{JDK|java/util|ServiceLoader}} infrastructure that requires all registered protocol handlers to be instantiated at begining | ||
- | * Three classes of [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/test/org/netbeans/geekout/demo/impl/ | + | * Three classes of [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/test/org/netbeans/geekout/demo/impl/GeekhiProtocolFactory.java similar code] registered using [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/src/org/netbeans/geekout/demo/URLProtocolRegistration.java own annotation] and [https://github.com/jtulach/Annotations/blob/03-annotation/UniversalResourceLocator/src/org/netbeans/geekout/demo/processor/URLProtocolRegistrationProcessor.java our annotation processor] - a system where each handler can be instantiated only when needed - e.g. one by one |
- | * Single class with [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/test/org/netbeans/geekout/demo/impl/ | + | * Single class with [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/test/org/netbeans/geekout/demo/impl/GeekciaoConnection.java essential code only] - the other classes eliminated by [https://github.com/jtulach/Annotations/blob/05-urlconnection/UniversalResourceLocator/src/org/netbeans/geekout/demo/processor/URLProtocolRegistrationProcessor.java more advanced annotation processor] |
[[Category:OpenSourceContribution]] | [[Category:OpenSourceContribution]] |