@API(status=STABLE,
since="6.0.2")
public final class Neo4jEntityScanner
extends Object
Neo4jMappingContext.| Modifier and Type | Method and Description |
|---|---|
static Neo4jEntityScanner |
get() |
static Neo4jEntityScanner |
get(ResourceLoader resourceLoader) |
Set<Class<?>> |
scan(Collection<String> packages)
Scan for entities with the specified annotations.
|
Set<Class<?>> |
scan(String... basePackages)
Scan for entities with the specified annotations.
|
public static Neo4jEntityScanner get()
public static Neo4jEntityScanner get(@Nullable ResourceLoader resourceLoader)
@SafeVarargs public final Set<Class<?>> scan(String... basePackages) throws ClassNotFoundException
basePackages - the list of base packages to scan.ClassNotFoundException - if an entity class cannot be loadedpublic Set<Class<?>> scan(Collection<String> packages) throws ClassNotFoundException
packages - the list of base packages to scan.ClassNotFoundException - if an entity class cannot be loadedscan(String...)Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.