Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor layer type registration usingLayerTypePresets to centralize and streamline configuration management.#457

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Andy2003 merged 2 commits intomasterfromfeature/layer-type-presets
Nov 21, 2025

Conversation

@Andy2003
Copy link
Collaborator

@Andy2003Andy2003 commentedNov 21, 2025
edited
Loading

Pull Request Overview

This PR refactors layer type registration by introducing aLayerTypePresets interface and ServiceLoader-based discovery mechanism to centralize and streamline configuration management. The hardcoded layer type registrations inSpatialDatabaseService are extracted into separate preset classes that can be discovered and loaded dynamically.

  • IntroducedLayerTypePresets interface withRegisteredLayerType record to define layer type configurations
  • Migrated layer type registrations from static initialization to ServiceLoader-based discovery
  • Split layer type definitions intoSpatialLayerTypePresets (general types) andOsmSpatialLayerTypePresets (OSM-specific)

Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR refactors layer type registration by introducing aLayerTypePresets interface and ServiceLoader-based discovery mechanism to centralize and streamline configuration management. The hardcoded layer type registrations inSpatialDatabaseService are extracted into separate preset classes that can be discovered and loaded dynamically.

  • IntroducedLayerTypePresets interface withRegisteredLayerType record to define layer type configurations
  • Migrated layer type registrations from static initialization to ServiceLoader-based discovery
  • Split layer type definitions intoSpatialLayerTypePresets (general types) andOsmSpatialLayerTypePresets (OSM-specific)

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
api/src/main/java/org/neo4j/spatial/api/layer/LayerTypePresets.javaDefines the newLayerTypePresets interface andRegisteredLayerType record for layer type configuration
server-plugin/src/main/resources/META-INF/services/org.neo4j.spatial.api.layer.LayerTypePresetsServiceLoader configuration file listing the preset implementations
server-plugin/src/main/java/org/neo4j/gis/spatial/SpatialLayerTypePresets.javaImplementation providing general spatial layer type presets (SimplePoint, WKT, WKB, etc.)
server-plugin/src/main/java/org/neo4j/gis/spatial/OsmSpatialLayerTypePresets.javaImplementation providing OSM-specific layer type preset
server-plugin/src/main/java/org/neo4j/gis/spatial/SpatialDatabaseService.javaRefactored to use ServiceLoader for loading presets, removed hardcoded registrations and innerRegisteredLayerType class

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

@github-actions
Copy link

Test Results

 34 files  ±0   34 suites  ±0   17m 10s ⏱️ +11s
361 tests ±0  336 ✅ ±0  25 💤 ±0  0 ❌ ±0 
340 runs  ±0  315 ✅ ±0  25 💤 ±0  0 ❌ ±0 

Results for commit4b70410. ± Comparison against base commit8097cce.

@Andy2003Andy2003 merged commitf69aca6 intomasterNov 21, 2025
2 checks passed
@Andy2003Andy2003 deleted the feature/layer-type-presets branchNovember 21, 2025 11:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

@Andy2003Andy2003

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@Andy2003

[8]ページ先頭

©2009-2025 Movatter.jp