|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.classloading.spi.helpers.NameAndVersionSupport
org.jboss.classloading.spi.dependency.Module
org.jboss.classloading.spi.dependency.helpers.ClassLoadingMetaDataModule
org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule
org.jboss.classloading.spi.dependency.policy.mock.MockClassLoaderPolicyModule
public class MockClassLoaderPolicyModule
VFSClassLoaderPolicyModule.
Constructor Summary | |
---|---|
MockClassLoaderPolicyModule(MockClassLoadingMetaData classLoadingMetaData,
String contextName)
Create a new VFSClassLoaderPolicyModule. |
Method Summary | |
---|---|
protected List<Capability> |
determineCapabilities()
Determine the capabilities |
protected MockClassLoaderPolicy |
determinePolicy()
Determine the classloader policy |
protected MockClassLoadingMetaData |
getClassLoadingMetaData()
Get the classloading metadata |
protected File |
getFile(URL url)
Get file from path's url. |
MockClassLoaderPolicy |
getPolicy()
Get the policy |
protected URL |
getURL(String path)
Get URL for path param. |
protected boolean |
includePath(String path,
Collection<String> included,
ClassFilter includedFilter,
Collection<String> excluded,
ClassFilter excludedFilter)
Should we include path in visit. |
void |
setKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context)
|
void |
unsetKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context)
|
void |
visit(ResourceVisitor visitor,
ResourceFilter filter,
ResourceFilter recurseFilter,
URL... urls)
Visit the resources in this module using the given filter(s) Typically the filter is used to determine which types of files to visit, e.g. |
protected void |
visitPath(File file,
String path,
ResourceVisitor visitor,
ResourceFilter filter,
ResourceFilter recurseFilter,
ClassLoader classLoader,
Collection<String> included,
ClassFilter includedFilter,
Collection<String> excluded,
ClassFilter excludedFilter,
ResourceContext context)
Visit path. |
Methods inherited from class org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule |
---|
createLazyDelegateLoader, getClassLoader, getClassLoaderForClass, getDelegateLoader, registerClassLoaderPolicy, registerClassLoaderPolicy, registerClassLoaderPolicy, removeClassLoader, reset |
Methods inherited from class org.jboss.classloading.spi.dependency.helpers.ClassLoadingMetaDataModule |
---|
determineRequirements, getDomainName, getExcluded, getExcludedExport, getExportAll, getIncluded, getParentDomainName, isBlackListable, isCacheable, isImportAll, isJ2seClassLoadingCompliance |
Methods inherited from class org.jboss.classloading.spi.dependency.Module |
---|
addDelegates, addIDependOn, createDependencies, defaultCapabilities, determinePackageNames, equals, getCapabilities, getClassLoaderState, getContextName, getControllerContext, getDelegates, getDeterminedDomainName, getDeterminedParentDomainName, getDeterminedParentPolicy, getDynamicClassRoot, getModuleForClass, getPackageNames, getRequirementDependencyItems, getRequirements, getResource, getResources, isValid, loadClass, registerModuleClassLoader, release, removeDependencies, removeIDependOn, resolveModule, setControllerContext, unregisterModuleClassLoader, visit, visit |
Methods inherited from class org.jboss.classloading.spi.helpers.NameAndVersionSupport |
---|
clone, getName, getTheVersion, getVersion, hashCode, setName, setTheVersion, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockClassLoaderPolicyModule(MockClassLoadingMetaData classLoadingMetaData, String contextName)
classLoadingMetaData
- the classloading metadatacontextName
- the context nameMethod Detail |
---|
protected URL getURL(String path)
path
- the path
protected File getFile(URL url)
url
- the path's url
public void visit(ResourceVisitor visitor, ResourceFilter filter, ResourceFilter recurseFilter, URL... urls)
Module
visit
in class Module
visitor
- the visitorfilter
- the filterrecurseFilter
- the recursion filter (null means recurse into everything)urls
- the urls we should visitprotected void visitPath(File file, String path, ResourceVisitor visitor, ResourceFilter filter, ResourceFilter recurseFilter, ClassLoader classLoader, Collection<String> included, ClassFilter includedFilter, Collection<String> excluded, ClassFilter excludedFilter, ResourceContext context)
file
- the current path filepath
- the pathvisitor
- the visitorfilter
- the filterrecurseFilter
- the recurse filterclassLoader
- the classloaderincluded
- the includedincludedFilter
- the included filterexcluded
- the excludedexcludedFilter
- the excluded filtercontext
- the current contextprotected boolean includePath(String path, Collection<String> included, ClassFilter includedFilter, Collection<String> excluded, ClassFilter excludedFilter)
path
- the pathincluded
- the includedincludedFilter
- the included filterexcluded
- the excludedexcludedFilter
- the excluded filter
protected List<Capability> determineCapabilities()
Module
determineCapabilities
in class ClassLoadingMetaDataModule
public void setKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context) throws Exception
setKernelControllerContext
in interface org.jboss.kernel.spi.dependency.KernelControllerContextAware
Exception
public void unsetKernelControllerContext(org.jboss.kernel.spi.dependency.KernelControllerContext context) throws Exception
unsetKernelControllerContext
in interface org.jboss.kernel.spi.dependency.KernelControllerContextAware
Exception
protected MockClassLoadingMetaData getClassLoadingMetaData()
ClassLoadingMetaDataModule
getClassLoadingMetaData
in class ClassLoadingMetaDataModule
public MockClassLoaderPolicy getPolicy()
ClassLoaderPolicyModule
getPolicy
in class ClassLoaderPolicyModule
protected MockClassLoaderPolicy determinePolicy()
ClassLoaderPolicyModule
determinePolicy
in class ClassLoaderPolicyModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |