public class CassandraEntityClassScanner extends Object
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
beanClassLoader |
protected Set<Class<?>> |
entityBasePackageClasses |
protected Set<String> |
entityBasePackages |
Constructor and Description |
---|
CassandraEntityClassScanner() |
CassandraEntityClassScanner(Class<?>... entityBasePackageClasses) |
CassandraEntityClassScanner(Collection<String> entityBasePackages) |
CassandraEntityClassScanner(Collection<String> entityBasePackages,
Collection<Class<?>> entityBasePackageClasses) |
CassandraEntityClassScanner(String... entityBasePackages) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation>[] |
getEntityAnnotations() |
Set<Class<?>> |
getEntityBasePackageClasses() |
Set<String> |
getEntityBasePackages() |
static Set<Class<?>> |
scan(Class<?>... entityBasePackageClasses) |
static Set<Class<?>> |
scan(Collection<String> entityBasePackages) |
static Set<Class<?>> |
scan(Collection<String> entityBasePackages,
Collection<Class<?>> entityBasePackageClasses) |
static Set<Class<?>> |
scan(String... entityBasePackages) |
protected Set<Class<?>> |
scanBasePackageForEntities(String basePackage) |
Set<Class<?>> |
scanForEntityClasses()
Scans the mapping base package for entity classes annotated with
Table or Persistent . |
void |
setBeanClassLoader(ClassLoader beanClassLoader) |
void |
setEntityBasePackageClasses(Collection<Class<?>> entityBasePackageClasses) |
void |
setEntityBasePackages(Collection<String> entityBasePackages) |
protected ClassLoader beanClassLoader
public CassandraEntityClassScanner()
public CassandraEntityClassScanner(Class<?>... entityBasePackageClasses)
public CassandraEntityClassScanner(String... entityBasePackages)
public CassandraEntityClassScanner(Collection<String> entityBasePackages)
public CassandraEntityClassScanner(Collection<String> entityBasePackages, Collection<Class<?>> entityBasePackageClasses)
public static Set<Class<?>> scan(String... entityBasePackages) throws ClassNotFoundException
ClassNotFoundException
public static Set<Class<?>> scan(Class<?>... entityBasePackageClasses) throws ClassNotFoundException
ClassNotFoundException
public static Set<Class<?>> scan(Collection<String> entityBasePackages) throws ClassNotFoundException
ClassNotFoundException
public static Set<Class<?>> scan(Collection<String> entityBasePackages, Collection<Class<?>> entityBasePackageClasses) throws ClassNotFoundException
ClassNotFoundException
public void setEntityBasePackages(Collection<String> entityBasePackages)
public void setEntityBasePackageClasses(Collection<Class<?>> entityBasePackageClasses)
public void setBeanClassLoader(ClassLoader beanClassLoader)
public Set<Class<?>> scanForEntityClasses() throws ClassNotFoundException
Table
or Persistent
.Set<Class<?>>
representing the annotated entity classes found.ClassNotFoundException
getEntityBasePackages()
protected Set<Class<?>> scanBasePackageForEntities(String basePackage) throws ClassNotFoundException
ClassNotFoundException
public Class<? extends Annotation>[] getEntityAnnotations()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.