本文整理了Java中java.net.URLClassLoader.definePackage()
方法的一些代码示例,展示了URLClassLoader.definePackage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URLClassLoader.definePackage()
方法的具体详情如下:
包路径:java.net.URLClassLoader
类名称:URLClassLoader
方法名:definePackage
[英]Defines a new package using the information extracted from the specified manifest.
[中]使用从指定清单中提取的信息定义新包。
代码示例来源:origin: robovm/robovm
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: robovm/robovm
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
代码示例来源:origin: com.caucho/resin
/**
* Defines a new package.
*/
@Override
protected Package definePackage(String name,
String a1, String a2, String a3,
String b1, String b2, String b3,
URL url)
{
name = name.replace('/', '.');
name = name.replace('\\', '.');
if (name.endsWith(".")) {
name = name.substring(0, name.length() - 1);
}
Package pkg = super.definePackage(name, a1, a2, a3, b1, b2, b3, url);
return pkg;
}
代码示例来源:origin: baratine/baratine
/**
* Defines a new package.
*/
@Override
protected Package definePackage(String name,
String a1, String a2, String a3,
String b1, String b2, String b3,
URL url)
{
name = name.replace('/', '.');
name = name.replace('\\', '.');
if (name.endsWith(".")) {
name = name.substring(0, name.length() - 1);
}
Package pkg = super.definePackage(name, a1, a2, a3, b1, b2, b3, url);
return pkg;
}
代码示例来源:origin: xap/xap
protected Package definePackage(String name, String specTitle,
String specVersion, String specVendor,
String implTitle, String implVersion,
String implVendor, URL sealBase) {
try {
return super.definePackage(name, specTitle,
specVersion, specVendor,
implTitle, implVersion,
implVendor, sealBase);
} catch (IllegalArgumentException e) {
return getPackage(name);
}
}
代码示例来源:origin: com.bugvm/bugvm-rt
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: MobiVM/robovm
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: com.gluonhq/robovm-rt
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: ibinti/bugvm
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: FlexoVM/flexovm
return definePackage(packageName, specificationTitle,
specificationVersion, specificationVendor, implementationTitle,
implementationVersion, implementationVendor, isSealed(manifest,
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
代码示例来源:origin: com.bugvm/bugvm-rt
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
代码示例来源:origin: MobiVM/robovm
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
代码示例来源:origin: ibinti/bugvm
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
代码示例来源:origin: com.gluonhq/robovm-rt
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
代码示例来源:origin: FlexoVM/flexovm
if (packageObj == null) {
if (manifest != null) {
definePackage(packageDotName, manifest,
codeSourceUrl);
} else {
definePackage(packageDotName, null, null,
null, null, null, null, null);
内容来源于网络,如有侵权,请联系作者删除!