@@ -156,11 +156,8 @@ Include this dependency to build against the Neo4j-provided API:
156156
157157=== Implement Java class
158158
159- [role=label--new-5.26]
160159==== `DatabaseSeedProvider`
161160
162- In Neo4j 5.26, the `DatabaseSeedProvider` was introduced to replace the now-deprecated `SeedProvider`.
163-
164161[source, java]
165162----
166163import com.neo4j.dbms.seeding.DatabaseSeedProvider;
@@ -212,45 +209,6 @@ The stream method should implement a scheme-specific way to obtain an input stre
212209
213210Implementation-specific seed configuration can be passed through from options specified in the `CREATE DATABASE` command using `seedConfig`.
214211
215- [role=label--deprecated-5.26]
216- ==== `SeedProvider`
217-
218- [source, java]
219- ----
220- import com.neo4j.dbms.seeding.ParsedSeedProviderConfig;
221- import com.neo4j.dbms.seeding.SeedProvider;
222-
223- public class CustomSeedProvider extends SeedProvider {
224-
225- public boolean matches(String uri) {
226- // return true if uri is supported by this
227- // provider
228- }
229-
230- public Path download(
231- String uri,
232- Optional<String> credentials,
233- Optional<String> config,
234- Path destinationFolder ) throws Exception {
235- // This method should obtain the downloaded in an
236- // implementation specific way and copy it to a
237- // file within the destinationFolder directory.
238- }
239- }
240- ----
241-
242- To implement the custom seed provider, you must implement two methods.
243- One method to match the URIs it can manage and one to download backups or dumps from the given URI.
244-
245- Typically, the match method uses the URI scheme (the part specified before the first colon) to determine whether it can support the given URI or not.
246- For example, `file`, `http`, `https` etc.
247-
248- The download method should implement a scheme-specific way to obtain the backup or dump and place it into a file in the supplied destination folder.
249- It should then return the path of the created file.
250-
251- Both credentials and configurations are passed through from options specified in the `CREATE DATABASE` command.
252- `ParsedSeedProviderConfig` provides a convenient way to parse and access the comma-separated configuration string.
253-
254212=== Deploy
255213
256214Build a jar file from Maven and place this onto the Neo4j classpath.
0 commit comments