Commit Graph

95 Commits

Author SHA1 Message Date
Spring Buildmaster
a9c2534cc9 #66 - Release version 2.0.0.M2. 2019-06-13 22:13:21 +00:00
Oliver Drotbohm
907c541633 #53 - Polishing. 2019-03-18 19:41:18 +01:00
Oliver Drotbohm
ec7ca4fb92 #53 - Tightened nullability contract and added nullability annotations. 2019-03-18 19:41:09 +01:00
Spring Buildmaster
21cbf686c0 #48 - Prepare next development iteration. 2019-03-04 15:32:03 +00:00
Spring Buildmaster
3417ab0fa5 #48 - Release version 2.0.0.M1. 2019-03-04 15:31:58 +00:00
Oliver Drotbohm
4f05683a85 #48 - Aligned factory methods in SimplePluginRegistry with OrderAwarePluginRegistry. 2019-03-04 16:13:19 +01:00
Oliver Drotbohm
a826473c10 #46 - Polishing.
Trailing whitespace.
2019-02-01 15:42:52 +01:00
Oliver Drotbohm
af3b10d2af #46 - Upgrade dependencies.
Upgrade to Spring 5.1.4. Removed obsolete exclusions of Commons Logging. Introduced automatic module names. Set build encoding to UTF-8.

Upgrade to Slf4j 1.7.25, Logback 1.2.3, Maven Compiler Plugin 3.8, Maven Source 3.0.1, Maven JAR Plugin 3.1.1, Maven Javadoc Plugin 3.0.1.
2019-02-01 15:42:46 +01:00
Oliver Drotbohm
c26af82abf #45 - Polishing.
Mostly trailing whitespace.
2019-02-01 15:27:01 +01:00
Oliver Drotbohm
764772cb13 #45 - Introduced PluginRegistry.of(…) factory methods.
The introduced methods mostly mimic the ones available on OrderAwarePluginRegistry except the one that's implying a certain order in the first place. Also introduced ….of(…) factory methods on OrderAwarePluginRegistry and deprecated the ….create(…) ones.
2019-02-01 15:26:40 +01:00
Oliver Gierke
e6b652d240 #42 - Java 8 cleanups in OrderAwarePluginRegistry.
Removed deprecated use of InvertibleComparator in favor of Java 8's Comparator.reversed(). Made comparator field final. Added non-null assertions. Removed superfluous generic method type hints. Javadoc.
2017-04-21 08:06:23 +02:00
Oliver Gierke
1298d05e9f #41 - Polishing.
Javadoc.
2017-04-21 08:03:32 +02:00
Oliver Gierke
856f662cf9 #41 - Added PluginRegistry.getRequiredPlugin(…).
Added aforementioned method for clients to look up a required plugin with the registry throwing a default exception if none is found. An overload taking a Supplier<String> is available to customize the exception message if needed.
2017-04-21 08:03:23 +02:00
Oliver Gierke
605b22ed82 #37, #38 - Move to Java 8 concepts in PluginRegistry API.
Moved to Optional instead of null values in the API. Removed deprecated methods in favor of methods taking a Supplier for both exceptions to be thrown or plugin defaults.
2017-02-14 12:00:36 +01:00
Oliver Gierke
8f64dce90b #38 - Removed Bundlor from build setup. 2017-02-14 11:51:48 +01:00
Oliver Gierke
1f0f6e0aec #35 - Prepare 2.0 development.
Upgraded to Spring 5.0 M3 and Java 8.
2017-01-31 11:44:45 +01:00
Marco Collovati
0429686b46 #29 - Fixed assertion in OrderAwarePluginRegistryUnitTest.assertOrder
Fixed assertion to compare result with expected object.

Original pull request: #30.
2017-01-31 11:38:06 +01:00
Oliver Gierke
2abef3aafc #31 - Move away from deprecated assertion methods in Spring 5.
We now consistently use Assert.notNull(…) et al that take an error message as the overload without a message have been deprecated in Spring 5.

Added build profile for Spring 5 releases and snapshots.
2017-01-31 10:48:22 +01:00
Shanmukha Rao Meesala
66eaf45b17 #24 - Use correct execution environment for Java 6 in manifest.
Updated template.mf to render a correct Java 6 execution environment (i.e. JavaSE-1.6 instead of J2SE-1.6).

Original pull request: #25.
2016-08-30 15:06:08 +02:00
Oliver Gierke
a800aa0ecc #18 - Explicitly declare bean definitions target type for plugin registries.
We now use the API introduced in Spring Framework 4.3.3 to explicitly declare a ResolvableType for the BeanDefinition of the plugin registries. This allows to autowire registries as PluginRegisty<Foo, …> and PluginRegistry<Bar, …> without using explicit qualifiers.
2016-08-30 11:53:32 +02:00
Oliver Gierke
ad017e83cd #19 - Exceptions on plugin lookup can now be submitted lazily.
Introduced overloads on PluginRegistry which instead of taking an exception instance immediately (which requires instance creation beforehand) now accept a Supplier<E> so that the exception creation can actually be delayed until it's really needed.

Deprecated the old methods taking exception instances directly.
2016-01-28 10:24:15 +01:00
Spring Buildmaster
46d36ec85d #13 - Prepare next development iteration. 2015-03-05 02:12:42 -08:00
Spring Buildmaster
ee53d9f3fa #13 - Release version 1.2.0.RELEASE. 2015-03-05 02:12:33 -08:00
Spring Buildmaster
fb1b09ffb2 #6 - Prepare next development iteration. 2014-05-01 10:30:26 -07:00
Spring Buildmaster
7261a19fb0 #6 - Release version 1.1.0.RELEASE. 2014-05-01 10:30:21 -07:00
Spring Buildmaster
4ce00cc87d #5 - Prepare next development iteration. 2014-01-28 15:18:18 -08:00
Spring Buildmaster
4304d8b8b4 #5 - Release version 1.0.0.RELEASE. 2014-01-28 15:18:16 -08:00
Oliver Gierke
33a6ec2a2d #5 - Polishing pom.xml in preparation of 1.0 release. 2014-01-21 12:44:03 +01:00
Spring Buildmaster
7f5f9b9641 #2 - Prepare next development iteration. 2012-11-22 01:36:56 -08:00
Spring Buildmaster
ee1b49cf8c #2 - Release version 0.8.0.RELEASE. 2012-11-22 01:36:53 -08:00
Oliver Gierke
cfddee95c1 #2 - Added Logback configuration and ditched Log4J. 2012-11-22 10:25:47 +01:00
Oliver Gierke
ccadfe6a50 #3 - Fixed declaration of exported type in namespace XSD. 2012-11-22 10:04:26 +01:00
Oliver Gierke
50857dc867 BeanListFactoryBean creates defensive copy of beans found.
This is necessary to the sorting applied correctly as it would be dropped through the proxy access otherwise.
2012-10-29 14:52:07 +01:00
Oliver Gierke
30e2b2c2fe Added support for exclusions to AbstractTypeAwareSupport.
AbstractTypeAwareSupport now takes an array of type to be excluded from the bean lookup. The BeansOfTypeTaregtSource's actual bean lookup was changed to not trigger bean creation of types to be excluded.
2012-10-29 14:51:26 +01:00
Oliver Gierke
ed7014cd31 Improvements in PluginRegistry implementations.
Improved constructor delegation in OrderAwarePluginRegistry correctly passing empty collections instead of null now. SimplePluginRegistry avoids to look up all plugins for the getPluginFor(…) call. Instead it eagerly returns the first one matching immediately.
2012-10-29 14:49:44 +01:00
Oliver Gierke
f1d9a630f4 Added support for creating PluginRegistry instances via JavaConfig.
Introduced @EnablePluginRegistries to list the Plugin interfaces the container shall expose PluginRegistry instances for.
2012-10-26 13:05:45 +02:00
Oliver Gierke
6d656bc328 #1 - Added integration test for ordering in OrderAwarePluginRegistry.
Expose that we return OrderAwarePluginRegistry from the factory bean to enable auto wiring the implementation type directly.
2012-10-26 13:03:57 +02:00
Oliver Gierke
93cb86cd52 Fix dependency setup.
Unify test dependencies in parent pom.xml. Fixed logging dependencies to only depend on SLF4j API now (in version 1.7.1). Using Logback as test runtime loggin dependency. Fixed Hamcrest/JUnit setup.
2012-10-26 12:52:25 +02:00
Oliver Gierke
c0e01afed2 #1 - Restructuring of internals to fix ordering not being applied.
Introduced PluginRegistrySupport base class to make sure we create a copy of the plugin list on first access to it as otherwise the sorting calls get lost in the proxy created by the AbstractTypeAwareSupport.

Removed MutablePluginRegistry interfaces and implementation along the way as it causes more bad than good currently and there doesn't seem to be a real need for it.
2012-10-26 12:51:02 +02:00
Oliver Gierke
ce3647339d #1 - Added test case to show implementing Ordered is considered on proxies as well. 2012-10-25 12:26:53 +02:00
Oliver Gierke
6ab36253aa Switch from Docbook to Markdown for documentation.
Added README.markdown with the current state of the reference docs in Markdown.
2012-02-22 16:05:51 +01:00
Oliver Gierke
d039caecaf Fixed documentation build. 2012-02-22 11:39:09 +01:00
Oliver Gierke
b4a036b66a Moved project to SpringSource. 2012-02-21 16:04:32 +01:00
Oliver Gierke
49b6dea1f4 Removed Eclipse configuration files. 2012-02-15 22:01:02 +01:00
Oliver Gierke
7693b8ed51 Major overhaul of entire project infrastructure.
Formatted source with Spring formatter. Fixed license headers and author tags.
2012-02-15 21:58:56 +01:00
Oliver Gierke
7a0b433e84 Preprare 0.8.0 development iteration. 2011-10-24 17:24:25 -05:00
Oliver Gierke
8ac7833e8a Prepare 0.7.0 release. 2011-10-24 17:20:22 -05:00
Oliver Gierke
f0b5ff07a8 Updated pom.xml files.
* use Maven artifacts over the ones from the EBR
* moved common test dependencies to parent pom
* updated dependency versions where possible
2011-05-25 18:15:47 +02:00
Oliver Gierke
b4e6491e45 * drop own implementation of a reverting comparator by using @InvertibleComparator@ of Spring * fixed some generics
git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@11640 5a64d73e-33d6-4ccc-9058-23f8668ecac9
2010-06-24 13:27:26 +00:00
Oliver Gierke
5bc37d6af5 * fix Bundlor setup * removed dependency to Commons Lang
git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@11639 5a64d73e-33d6-4ccc-9058-23f8668ecac9
2010-06-24 13:27:25 +00:00