org.mule.module.ibeans.config
Class AbstractAnnotationConfigurationBuilder
java.lang.Object
org.mule.config.builders.AbstractConfigurationBuilder
org.mule.config.AnnotationsConfigurationBuilder
org.mule.module.ibeans.config.AbstractAnnotationConfigurationBuilder
- All Implemented Interfaces:
- ConfigurationBuilder
- Direct Known Subclasses:
- IBeanHolderConfigurationBuilder
public abstract class AbstractAnnotationConfigurationBuilder
- extends AnnotationsConfigurationBuilder
Provides implementation support for configuration builders that configure Mule by scanning annotations on the
classpath.
One of more scan packages can be used to locate classes with annotations. The packages to be scanned cn be configured
in two ways:
1) Pass one or more comma-separated packages into the constructor of this builder
2) if no packages are set via the constructor or the DEFAULT_BASE_PACKAGE
value is used, the classpath will be
scanned for META-INF/ibeans.properties
. Zero or more of these will be loaded and the package names defined in
either the 'ibeans.scan.packages' or 'annotations.scan.packages' will be scanned. This allows users to configure
specific packages to scan in their application.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IBEANS_PROPERTIES
public static final java.lang.String IBEANS_PROPERTIES
- See Also:
- Constant Field Values
DEFAULT_BASE_PACKAGE
public static final java.lang.String[] DEFAULT_BASE_PACKAGE
classLoader
protected java.lang.ClassLoader classLoader
basepackages
protected java.lang.String[] basepackages
AbstractAnnotationConfigurationBuilder
public AbstractAnnotationConfigurationBuilder()
AbstractAnnotationConfigurationBuilder
public AbstractAnnotationConfigurationBuilder(java.lang.String... basepackages)
AbstractAnnotationConfigurationBuilder
public AbstractAnnotationConfigurationBuilder(java.lang.ClassLoader classLoader)
AbstractAnnotationConfigurationBuilder
public AbstractAnnotationConfigurationBuilder(java.lang.ClassLoader classLoader,
java.lang.String... basepackages)
createClasspathScanner
protected ClasspathScanner createClasspathScanner()
throws java.io.IOException
- Throws:
java.io.IOException
getScanPackagesProperty
protected abstract java.lang.String getScanPackagesProperty()
convertPackagesToPaths
protected java.lang.String[] convertPackagesToPaths(java.lang.String[] packages)
findPackages
protected java.lang.String[] findPackages()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.