类 StandardArchiveDescriptorFactory
- java.lang.Object
-
- org.hibernate.boot.archive.internal.StandardArchiveDescriptorFactory
-
- 所有已实现的接口:
ArchiveDescriptorFactory,JarFileEntryUrlAdjuster
public class StandardArchiveDescriptorFactory extends Object implements ArchiveDescriptorFactory, JarFileEntryUrlAdjuster
Standard implementation of ArchiveDescriptorFactory- 作者:
- Emmanuel Bernard, Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static StandardArchiveDescriptorFactoryINSTANCESingleton access
-
构造器概要
构造器 构造器 说明 StandardArchiveDescriptorFactory()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 URLadjustJarFileEntryUrl(URL url, URL rootUrl)Adjust the given URL, if needed.ArchiveDescriptorbuildArchiveDescriptor(URL url)Build a descriptor of the archive indicated by the given urlArchiveDescriptorbuildArchiveDescriptor(URL url, String entry)Build a descriptor of the archive indicated by the path relative to the given urlprotected StringextractLocalFilePath(URL url)URLgetJarURLFromURLEntry(URL url, String entry)Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc) and an entry within that JAR, find the URL to the JAR itself.URLgetURLFromPath(String jarPath)Not used!
-
-
-
字段详细资料
-
INSTANCE
public static final StandardArchiveDescriptorFactory INSTANCE
Singleton access
-
-
方法详细资料
-
buildArchiveDescriptor
public ArchiveDescriptor buildArchiveDescriptor(URL url)
从接口复制的说明:ArchiveDescriptorFactoryBuild a descriptor of the archive indicated by the given url- 指定者:
buildArchiveDescriptor在接口中ArchiveDescriptorFactory- 参数:
url- The url to the archive- 返回:
- The descriptor
-
buildArchiveDescriptor
public ArchiveDescriptor buildArchiveDescriptor(URL url, String entry)
从接口复制的说明:ArchiveDescriptorFactoryBuild a descriptor of the archive indicated by the path relative to the given url- 指定者:
buildArchiveDescriptor在接口中ArchiveDescriptorFactory- 参数:
url- The url to the archiveentry- The path within the given url that refers to the archive- 返回:
- The descriptor
-
getJarURLFromURLEntry
public URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException
从接口复制的说明:ArchiveDescriptorFactoryGiven a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc) and an entry within that JAR, find the URL to the JAR itself.- 指定者:
getJarURLFromURLEntry在接口中ArchiveDescriptorFactory- 参数:
url- The URL to an entry within a JARentry- The entry that described the thing referred to by the URL relative to the JAR- 返回:
- The URL to the JAR
- 抛出:
IllegalArgumentException- Generally indicates a problem with malformed urls.
-
getURLFromPath
public URL getURLFromPath(String jarPath)
从接口复制的说明:ArchiveDescriptorFactoryNot used!- 指定者:
getURLFromPath在接口中ArchiveDescriptorFactory- 参数:
jarPath- The jar path- 返回:
- The url from the path?
-
adjustJarFileEntryUrl
public URL adjustJarFileEntryUrl(URL url, URL rootUrl)
从接口复制的说明:JarFileEntryUrlAdjusterAdjust the given URL, if needed.- 指定者:
adjustJarFileEntryUrl在接口中JarFileEntryUrlAdjuster- 参数:
url- The url to adjustrootUrl- The root URL, for resolving relative URLs- 返回:
- The adjusted url.
-
-