Package org.apache.camel.spring.boot
Class FatJarPackageScanClassResolver
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.impl.engine.BasePackageScanResolver
-
- org.apache.camel.impl.engine.DefaultPackageScanClassResolver
-
- org.apache.camel.spring.boot.FatJarPackageScanClassResolver
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.NonManagedService
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.PackageScanClassResolver
,org.apache.camel.StatefulService
,org.apache.camel.StaticService
,org.apache.camel.SuspendableService
public class FatJarPackageScanClassResolver extends org.apache.camel.impl.engine.DefaultPackageScanClassResolver
An implementation of theorg.apache.camel.spi.PackageScanClassResolver
that is able to scan spring-boot fat jars to find classes contained also in nested jars.
-
-
Constructor Summary
Constructors Constructor Description FatJarPackageScanClassResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
doLoadJarClassEntries(InputStream stream, String urlPath)
Loads all the class entries from the main JAR and all nested jars.protected List<String>
doLoadJarClassEntries(InputStream stream, String urlPath, boolean inspectNestedJars, boolean closeStream)
-
Methods inherited from class org.apache.camel.impl.engine.DefaultPackageScanClassResolver
addFilter, addIfMatching, clearCache, doStop, find, find, findAnnotated, findAnnotated, findByFilter, findImplementations, removeFilter
-
Methods inherited from class org.apache.camel.impl.engine.BasePackageScanResolver
addClassLoader, customResourceLocator, getCamelContext, getClassLoaders, getResources, isAcceptableScheme, setAcceptableSchemes, setCamelContext
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.camel.spi.PackageScanClassResolver
addClassLoader, getClassLoaders, setAcceptableSchemes
-
-
-
-
Method Detail
-
doLoadJarClassEntries
protected List<String> doLoadJarClassEntries(InputStream stream, String urlPath)
Loads all the class entries from the main JAR and all nested jars.- Overrides:
doLoadJarClassEntries
in classorg.apache.camel.impl.engine.DefaultPackageScanClassResolver
- Parameters:
stream
- the inputstream of the jar file to be examined for classesurlPath
- the url of the jar file to be examined for classes- Returns:
- all the .class entries from the main JAR and all nested jars
-
doLoadJarClassEntries
protected List<String> doLoadJarClassEntries(InputStream stream, String urlPath, boolean inspectNestedJars, boolean closeStream)
-
-