当前位置: 首页>>代码示例>>Java>>正文


Java Archive.Entry方法代码示例

本文整理汇总了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();
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-dashboard,代码行数:16,代码来源:BootClassLoaderFactory.java

示例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();
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-dataflow,代码行数:15,代码来源:BootClassLoaderFactory.java

示例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);
}
 
开发者ID:spring-cloud,项目名称:spring-cloud-dashboard,代码行数:5,代码来源:BootClassLoaderFactory.java

示例6: isNestedArchive

import org.springframework.boot.loader.archive.Archive; //导入方法依赖的package包/类
@Override
protected boolean isNestedArchive(Archive.Entry entry) {
	return !entry.isDirectory() && entry.getName().startsWith(LIB);
}
 
开发者ID:Nephilim84,项目名称:contestparser,代码行数:5,代码来源:JarLauncher.java

示例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


注:本文中的org.springframework.boot.loader.archive.Archive.Entry方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。