Commit Graph

19 Commits

Author SHA1 Message Date
Oleg Zhurakousky
2caf460265 Revert "GH-1450 Fixed lifecycle issue with BindingServiceConfiguration"
This reverts commit d92c748517.
2018-08-25 15:55:16 +02:00
Oleg Zhurakousky
d92c748517 GH-1450 Fixed lifecycle issue with BindingServiceConfiguration
Resolves #1450
2018-08-21 21:46:49 +02:00
Soby Chacko
c85660fba2 Spring Boot 2.1 upgrade
* Removed MockBinderRegistryConfiguration
* Move necessary beans from `BindingServiceConfiguration` which is now auto configurable into
  `BinderFactoryConfiguration` that is invoked by `EnableBinding` in order to avoid certain
  cyclic dependency issues. The beans moved are binding target factories of type
  `MessageSourceBindingTargetFactory` and `SubscribableChannelBindingTargetFactory` and their dependencies.
  As a side effect, `ContentTypeConfiguration` is also brought back at the `EnableBinding` level through
  `BinderFactoryConfiguration`.
* Restore `ServerController`  bean in SchemaServerConfiguation as the removal of it
  earlier introduced  some connectivity issues with the schema registry server.
* Update copyrights
2018-08-14 13:42:02 +02:00
Soby Chacko
ae445e73ac Spring Boot 2.1 upgrade related changes
* Instead of redefining `BinderTypeRegistry` as a bean in several tests, properly use spring.binders
  to define mock binders and then choose a default binder in tests in case of multiple binders in
  same spring.binders file.
* Remove `BindingServiceConfiguration` in `EnableBinding` and introduce it as a proper
  Spring Boot autoconfiguration class. Added `BindingServiceConfiguration` to spring.factories.
* Move `BinderFactory` bean into `BindingServiceConfiguration` and add `ConditionalOnMissingBean`
  on it so that downstream users can define new `BinderFactory` beans as part of autoconfiguration.
* Remove `ConditionalOnMissingBean` from the `BinderTypeRegistry` bean in `BinderFactoryConfiguration`
  as we don't expect this bean to be overridden.
* Remove previously added property `spring.main.allow-bean-definition-overriding` in several tests.
* Since web/actuator is optional now, remove unncecessarily setting server.port to `0` in tests
* Ensure that `BindersHealthIndicatorAutoConfiguration` is autoconfigured after `BindingServiceConfiguration`
  so that it has a `BinderFactory` available.
* Remove redefining `ServerController` bean in `SchemaServerConfiguration` as this is already created through
  component scanning and causing the bean overriding exceptions.
* Tests cleanup and polishing.

Resolves #1429, #1430
2018-08-10 11:27:11 -04:00
Soby Chacko
cb105ab0ec Upgrade Spring Cloud Build to 2.1.0
This upgrades to Spring Boot 2.1.0
Fix tests where the beans need to get overridden
Minor cleaning up
Polishing

Resolves #1426
2018-08-07 19:47:13 +02:00
Oleg Zhurakousky
9f3f49eff0 Revert "Prevent SpringBootApplication starting to overlap with user defined Application."
This reverts commit 66b7d8dbe4.
2018-06-18 13:44:33 -04:00
Guilherme Blanco
66b7d8dbe4 Prevent SpringBootApplication starting to overlap with user defined Application.
Fixes #1391
Resolves #1393
2018-06-15 14:20:46 -04:00
Soby Chacko
ae74c21720 Fixing compiler warnings
Fixing unchecked and deprecation warnings
Polishing

Resolves #1318
2018-03-21 14:55:22 -04:00
Janne Valkealahti
4f72a10bc6 Upgrade build to boot 2.x
- Pump up version to 2.0.0
- Some generic polish
- All changes around breakage with boot 2.x
- Some boot classes has been moved around
- You can't no longer have binding key ending with
  camelCase.
- New Binder now has illegal keys.
- Some changes to tests as we can directly do end-to-end
  testing with ENV_VAR_FORMAT as normal keys
- Spring data repo changes as now uses Optional
- Remove relaxed binder and its tests in favor of new Binder
- Some mockito api changes
- One Ingored test TextPlainToJsonConversionTest.testTextPlainToJsonConversionOnInput
- Relates to #935

Cache metric export properties

Add code formatting guidelines

Rearranged files
2017-10-05 10:31:09 -04:00
Ilayaperumal Gopinathan
bd002e4aaf Add code formatting guidelines
Add 'eclipse' folder containing Eclipse code
formatter configuration and instructions how to use
 it.

Update rule for join_wrapped_lines

 - Set to `false`

Resolves #930

Update README

Address review comments
2017-05-15 13:03:45 -04:00
Ilayaperumal Gopinathan
6d53625acd Doc for schema server REST endpoint /schema/format
Resolves #828
2017-02-23 12:07:51 +05:30
Vinicius Carvalho
1558bdf540 List schemas by subject
Fixing code style
2017-02-23 11:02:25 +05:30
Marius Bogoevici
98431a6d25 Remove TestRestTemplate bean definition.
Signed-off-by: Marius Bogoevici <mbogoevici@pivotal.io>
2017-01-04 10:40:31 -05:00
Marius Bogoevici
3d81411f93 Schema deletion additional changes
- fix typo
- Return METHOD_NOT_ALLOWED if schema deletion is disabled
- Tests dirty context to avoid cross-chatter

Signed-off-by: Marius Bogoevici <mbogoevici@pivotal.io>
2016-12-21 17:03:11 -05:00
Ilayaperumal Gopinathan
5d1cef2715 Add support for schema deletion
- Add REST endpoints for schema deletion
   - by subject, format, version
   - by subject
   - by id

 - Add tests

Resolves #716

Update doc
2016-12-21 17:03:02 -05:00
making
6d8cb58bde Fix wrong property for the root path of the schema server 2016-11-23 04:19:42 +09:00
Vinicius Carvalho
18c894689c Fixes for MySQL and Postgresql
Renamed Table from Schema to SCHEMA_REPOSITORY to avoid potential reserved word clashes with some databases

Postgresql GH-696 requires transactional semantics even for reading operations when using Lob columns

Removed dependency to h2 database. A database driver is now explicitly required when running the server

Resolves #696 and #697
2016-11-18 10:50:02 -05:00
Marius Bogoevici
6c9976b77f Fix EntityPackageScanner to property merge the packagesToScan
Fixes #686

Removing unused imports

Simplify the registration process

- rely on EntityScanPackages.register to properly merge registered packages
- add additional tests validating the process
2016-10-31 13:55:58 +05:30
Vinicius Carvalho
4422b21438 Add Avro serialization and schema management support
- Add schema server implementation
- Add schema client abstraction
- Add schema client implementation for own schema registry server
- Add schema client supporting Confluent schema registry
- Add Avro-based message converter supporting a static schema resource
- Add Avro-based message converter with schema evolution support, via
  schema registry client.
- On serialization, the converter register writer schemas with the schema
  registry server and augment the content type of outbound message with
  schema information.
  On deserialization, the reading converter will fetch the schema from the server
  if not available locally.

Use class information if schema is not specified

In the case of SpecificRecord and Reflective readers/writers, the class information can be used instead

Make subtype prefix configurable and shorten the subject

- Subtype prefix is now configurable and subject is the lowercase schema name
- Enhance/correct javadoc

Refine AbstractAvroMessageConverter

- distinguish between writer and reader schema when reader is created

Add schema registry and schema registry client docs
2016-07-31 21:26:36 -04:00