Class ClasspathJarDuplicateClassFinder
java.lang.Object
com.atlassian.confluence.util.classpath.ClasspathJarDuplicateClassFinder
- All Implemented Interfaces:
DuplicateClassFinder
Finds duplicate classes in JARs in the classpath of the thread context classloader.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.commons.collections.Predicate
A list of prefixes of class file paths to exclude. -
Constructor Summary
ConstructorsConstructorDescriptionClasspathJarDuplicateClassFinder
(org.apache.commons.collections.Predicate classFileNamePredicate) -
Method Summary
Modifier and TypeMethodDescriptiongetClassFileNames
(JarSet jars) getClassNames
(JarSet jars) getPackageNames
(JarSet jars) static boolean
isKnownDuplicate
(String classFileName)
-
Field Details
-
KNOWN_DUPLICATE_PACKAGES
A list of prefixes of class file paths to exclude. For example, "javax/transaction/" will exclude everything in the javax.transaction package and all subpackages too. -
KNOWN_DUPLICATE_CLASSES
-
EXCLUDE_KNOWN_DUPLICATES
public static final org.apache.commons.collections.Predicate EXCLUDE_KNOWN_DUPLICATES
-
-
Constructor Details
-
ClasspathJarDuplicateClassFinder
public ClasspathJarDuplicateClassFinder() -
ClasspathJarDuplicateClassFinder
public ClasspathJarDuplicateClassFinder(org.apache.commons.collections.Predicate classFileNamePredicate)
-
-
Method Details
-
getJarSetsWithCommonClasses
- Specified by:
getJarSetsWithCommonClasses
in interfaceDuplicateClassFinder
-
getClassFileNames
- Specified by:
getClassFileNames
in interfaceDuplicateClassFinder
-
getPackageNames
- Specified by:
getPackageNames
in interfaceDuplicateClassFinder
-
getClassNames
- Specified by:
getClassNames
in interfaceDuplicateClassFinder
-
isKnownDuplicate
-