Package de.hybris.bootstrap.loader.impl
Class LocationInfoAnalyzerImpl
- java.lang.Object
-
- de.hybris.bootstrap.loader.impl.LocationInfoAnalyzerImpl
-
- All Implemented Interfaces:
LocationInfoAnalyzer
public final class LocationInfoAnalyzerImpl extends java.lang.Object implements LocationInfoAnalyzer
Implementation of theLocationInfoAnalyzerinterface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassContainerLocationInfo(ClassContainerLocationInfo info)This method adds a class path ressource (seeClassContainerLocationInfo) to this LocationInfoAnalyzer instance.ClassContainerLocationInfocreateClassLocationInfo(java.lang.String webAppName, java.lang.ClassLoader loader, java.net.URL url)Creates a newClassContainerLocationInfofor a specific resource URL in scope of someClassLoader.static LocationInfoAnalyzergetInstance()java.util.List<ClassContainerLocationInfo>getLoaderInfos(java.lang.String app, java.util.regex.Pattern pattern)Returns a list withClassContainerLocationInfos.java.util.Map<java.lang.String,java.util.Set<java.lang.String>>getLocations(java.lang.String app, java.util.regex.Pattern pattern)Returns an overview about all loaded classes (full qualified class name) and their appearance of the jars/ressources.booleanisInitialized()Returns true if localization info was filled in during startup of the classloaders.
-
-
-
Method Detail
-
getInstance
public static LocationInfoAnalyzer getInstance()
-
addClassContainerLocationInfo
public void addClassContainerLocationInfo(ClassContainerLocationInfo info)
Description copied from interface:LocationInfoAnalyzerThis method adds a class path ressource (seeClassContainerLocationInfo) to this LocationInfoAnalyzer instance.- Specified by:
addClassContainerLocationInfoin interfaceLocationInfoAnalyzer
-
getLoaderInfos
public java.util.List<ClassContainerLocationInfo> getLoaderInfos(java.lang.String app, java.util.regex.Pattern pattern)
Description copied from interface:LocationInfoAnalyzerReturns a list withClassContainerLocationInfos.- Specified by:
getLoaderInfosin interfaceLocationInfoAnalyzerpattern-nulland the pattern .* are equal which means: show all.
-
getLocations
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getLocations(java.lang.String app, java.util.regex.Pattern pattern)Description copied from interface:LocationInfoAnalyzerReturns an overview about all loaded classes (full qualified class name) and their appearance of the jars/ressources.- Specified by:
getLocationsin interfaceLocationInfoAnalyzerpattern-nulland the pattern .* are equal which means: show all.- Returns:
- a map. The key is the full qualified class name. The value is the ressource which contains this class.
-
createClassLocationInfo
public ClassContainerLocationInfo createClassLocationInfo(java.lang.String webAppName, java.lang.ClassLoader loader, java.net.URL url)
Description copied from interface:LocationInfoAnalyzerCreates a newClassContainerLocationInfofor a specific resource URL in scope of someClassLoader.- Specified by:
createClassLocationInfoin interfaceLocationInfoAnalyzer
-
isInitialized
public boolean isInitialized()
Description copied from interface:LocationInfoAnalyzerReturns true if localization info was filled in during startup of the classloaders.- Specified by:
isInitializedin interfaceLocationInfoAnalyzer
-
-