本文整理汇总了Java中org.springframework.boot.loader.archive.Archive.Entry方法的典型用法代码示例。如果您正苦于以下问题:Java Archive.Entry方法的具体用法?Java Archive.Entry怎么用?Java Archive.Entry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.boot.loader.archive.Archive
的用法示例。
在下文中一共展示了Archive.Entry方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createClassLoader
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
public URLClassLoader createClassLoader() {
boolean useBoot14Layout = false;
for (Archive.Entry entry : archive) {
if (entry.getName().startsWith(BOOT_14_LIBS_LOCATION)) {
useBoot14Layout = true;
break;
}
}
ClassLoaderExposingLauncher launcher = useBoot14Layout
? new Boot14ClassLoaderExposingLauncher()
: new Boot13ClassLoaderExposingLauncher();
return launcher.createClassLoader();
}
示例2: isNestedArchive
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
@Override
protected boolean isNestedArchive(Archive.Entry entry) {
if (entry.isDirectory()) {
return entry.getName().equals(BOOT_INF_CLASSES);
}
return entry.getName().startsWith(BOOT_INF_LIB);
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:JarLauncher.java
示例3: isNestedArchive
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
@Override
public boolean isNestedArchive(Archive.Entry entry) {
if (entry.isDirectory()) {
return entry.getName().equals(WEB_INF_CLASSES);
}
else {
return entry.getName().startsWith(WEB_INF_LIB)
|| entry.getName().startsWith(WEB_INF_LIB_PROVIDED);
}
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:11,代码来源:WarLauncher.java
示例4: createClassLoader
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
public URLClassLoader createClassLoader() {
boolean useBoot14Layout = false;
for (Archive.Entry entry : archive) {
if (entry.getName().startsWith(BOOT_14_LIBS_LOCATION)) {
useBoot14Layout = true;
break;
}
}
ClassLoaderExposingLauncher launcher = useBoot14Layout ? new Boot14ClassLoaderExposingLauncher()
: new Boot13ClassLoaderExposingLauncher();
return launcher.createClassLoader();
}
示例5: isNestedArchive
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
@Override
protected boolean isNestedArchive(Archive.Entry entry) {
return !entry.isDirectory() && entry.getName().startsWith(BOOT_13_LIBS_LOCATION);
}
示例6: isNestedArchive
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
@Override
protected boolean isNestedArchive(Archive.Entry entry) {
return !entry.isDirectory() && entry.getName().startsWith(LIB);
}
示例7: isNestedArchive
import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
/**
* Determine if the specified {@link JarEntry} is a nested item that should be added
* to the classpath. The method is called once for each entry.
* @param entry the jar entry
* @return {@code true} if the entry is a nested item (jar or folder)
*/
protected abstract boolean isNestedArchive(Archive.Entry entry);
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:ExecutableArchiveLauncher.java