Package org.apache.camel.impl.engine
Class DefaultPackageScanResourceResolver
- 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.DefaultPackageScanResourceResolver
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.NonManagedService
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.PackageScanResourceResolver
,org.apache.camel.StatefulService
,org.apache.camel.StaticService
,org.apache.camel.SuspendableService
public class DefaultPackageScanResourceResolver extends BasePackageScanResolver implements org.apache.camel.spi.PackageScanResourceResolver, org.apache.camel.NonManagedService, org.apache.camel.CamelContextAware
Default implement ofPackageScanResourceResolver
-
-
Field Summary
-
Fields inherited from class org.apache.camel.impl.engine.BasePackageScanResolver
acceptableSchemes, log
-
-
Constructor Summary
Constructors Constructor Description DefaultPackageScanResourceResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFind(String packageName, ClassLoader classLoader, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources, String subPattern)
protected void
doFindResources(String location, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources)
protected void
doInit()
protected void
doStop()
protected void
findInClasspath(String packageName, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources, String subPattern)
protected void
findInFileSystem(File dir, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources, String subPattern)
Set<String>
findResourceNames(String location)
Set<InputStream>
findResources(String location)
-
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, 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.CamelContextAware
getCamelContext, setCamelContext
-
Methods inherited from interface org.apache.camel.spi.PackageScanResourceResolver
addClassLoader, getClassLoaders, setAcceptableSchemes
-
-
-
-
Method Detail
-
findResourceNames
public Set<String> findResourceNames(String location) throws Exception
- Specified by:
findResourceNames
in interfaceorg.apache.camel.spi.PackageScanResourceResolver
- Throws:
Exception
-
findResources
public Set<InputStream> findResources(String location) throws Exception
- Specified by:
findResources
in interfaceorg.apache.camel.spi.PackageScanResourceResolver
- Throws:
Exception
-
doFindResources
protected void doFindResources(String location, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources) throws Exception
- Throws:
Exception
-
findInFileSystem
protected void findInFileSystem(File dir, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources, String subPattern) throws Exception
- Throws:
Exception
-
findInClasspath
protected void findInClasspath(String packageName, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources, String subPattern)
-
doFind
protected void doFind(String packageName, ClassLoader classLoader, Set<org.apache.camel.util.KeyValueHolder<String,InputStream>> resources, String subPattern)
-
doInit
protected void doInit() throws Exception
- Overrides:
doInit
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
-