19 package org.sleuthkit.autopsy.ingest;
26 class FactoryClassNameNormalizer {
28 private static final CharSequence pythonModuleSettingsPrefixCS =
"org.python.proxies.".subSequence(0,
"org.python.proxies.".length() - 1);
29 private static final Logger logger = Logger.
getLogger(FactoryClassNameNormalizer.class.getName());
31 static String normalize(String canonicalClassName) {
32 if (isPythonModuleSettingsFile(canonicalClassName)) {
37 String moduleClassName = canonicalClassName.replaceAll(
"\\$\\d*$",
"");
38 return moduleClassName;
40 return canonicalClassName;
53 private static boolean isPythonModuleSettingsFile(String moduleSettingsFilePath) {
54 return moduleSettingsFilePath.contains(pythonModuleSettingsPrefixCS);
synchronized static Logger getLogger(String name)