Class DefaultLocationProvider
java.lang.Object
com._1c.g5.v8.dt.internal.pm.classloading.DefaultLocationProvider
- All Implemented Interfaces:
ILocationProvider
ILocationProvider
default implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBundleLocation
(org.osgi.framework.Bundle bundle) ILocationProvider.getBundleLocation(Bundle)
method implementation.getClassPathLocation
(Class<?> clazz) ILocationProvider.getClassPathLocation(Class)
method implementation.getClassPathLocation
(org.osgi.framework.Bundle bundle) ILocationProvider.getClassPathLocation(Bundle)
method implementation.getResourcePath
(org.osgi.framework.Bundle bundle, String resource) ILocationProvider.getResourcePath(Bundle, String)
method implementation.
-
Constructor Details
-
DefaultLocationProvider
public DefaultLocationProvider()
-
-
Method Details
-
getClassPathLocation
ILocationProvider.getClassPathLocation(Class)
method implementation.- Specified by:
getClassPathLocation
in interfaceILocationProvider
- Parameters:
clazz
- given class (notnull
)s- Returns:
- class path location of the given class's bundle (not
null
) - Throws:
IOException
- if an error occurred during reading given class's root location
-
getClassPathLocation
ILocationProvider.getClassPathLocation(Bundle)
method implementation.- Specified by:
getClassPathLocation
in interfaceILocationProvider
- Parameters:
bundle
- given bundle (notnull
)- Returns:
- given bundle's class path location (not
null
) - Throws:
IOException
- if an error occurred during reading given bundle
-
getBundleLocation
ILocationProvider.getBundleLocation(Bundle)
method implementation.- Specified by:
getBundleLocation
in interfaceILocationProvider
- Parameters:
bundle
- given bundle (notnull
)- Returns:
- a location of the jar of given bundle (may be
null
) - Throws:
IOException
- if an error occurred during reading given bundle
-
getResourcePath
ILocationProvider.getResourcePath(Bundle, String)
method implementation.- Specified by:
getResourcePath
in interfaceILocationProvider
- Parameters:
bundle
- given bundle (notnull
)resource
- given location of resource within given bundle (notnull
)- Returns:
- file path to resource which is located within given bundle (not
null
) - Throws:
IOException
- if an error occurred during reading given bundle
-