- java.lang.Object
-
- io.github.mmm.bean.generator.BeanScanner
-
- All Implemented Interfaces:
AutoCloseable
public class BeanScanner extends Object implements AutoCloseable
Scans the class-/module-path forbeanclasses and interfaces.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description BeanScanner(ClassLoader classloader)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Collection<Class<? extends WritableBean>>findBeanClasses()Collection<Class<? extends WritableBean>>findBeanInterfaces()
-
-
-
Constructor Detail
-
BeanScanner
public BeanScanner(ClassLoader classloader)
The constructor.- Parameters:
classloader- the optionalClassLoaderto use.
-
-
Method Detail
-
findBeanInterfaces
public Collection<Class<? extends WritableBean>> findBeanInterfaces()
- Returns:
- the
CollectionofClasses reflecting the non-abstract bean interfaces.
-
findBeanClasses
public Collection<Class<? extends WritableBean>> findBeanClasses()
- Returns:
- the
CollectionofClasses reflecting the non-abstract bean classes.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-