本文整理了Java中aQute.bnd.osgi.Builder.getPlugins()
方法的一些代码示例,展示了Builder.getPlugins()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.getPlugins()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称:Builder
方法名:getPlugins
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Sign the jar file. -sign : <alias> [ ';' 'password:=' <password> ] [ ';'
* 'keystore:=' <keystore> ] [ ';' 'sign-password:=' <pw> ] ( ',' ... )*
*/
void sign(@SuppressWarnings("unused") Jar jar) throws Exception {
String signing = getProperty(SIGN);
if (signing == null)
return;
logger.debug("Signing {}, with {}", getBsn(), signing);
List<SignerPlugin> signers = getPlugins(SignerPlugin.class);
Parameters infos = parseHeader(signing);
for (Entry<String, Attrs> entry : infos.entrySet()) {
for (SignerPlugin signer : signers) {
signer.sign(this, entry.getKey());
}
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public Resource process(String source) {
Instructions make = getMakeHeader();
logger.debug("make {}", source);
for (Map.Entry<Instruction, Attrs> entry : make.entrySet()) {
Instruction instr = entry.getKey();
Matcher m = instr.getMatcher(source);
if (m.matches() || instr.isNegated()) {
Map<String, String> arguments = replace(m, entry.getValue());
List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
for (MakePlugin plugin : plugins) {
try {
Resource resource = plugin.make(builder, source, arguments);
if (resource != null) {
logger.debug("Made {} from args {} with {}", source, arguments, plugin);
return resource;
}
} catch (Exception e) {
builder.exception(e, "Plugin %s generates error when use in making %s with args %s", plugin,
source, arguments);
}
}
}
}
return null;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Sign the jar file. -sign : <alias> [ ';' 'password:=' <password> ] [ ';'
* 'keystore:=' <keystore> ] [ ';' 'sign-password:=' <pw> ] ( ',' ... )*
*/
void sign(@SuppressWarnings("unused") Jar jar) throws Exception {
String signing = getProperty(SIGN);
if (signing == null)
return;
logger.debug("Signing {}, with {}", getBsn(), signing);
List<SignerPlugin> signers = getPlugins(SignerPlugin.class);
Parameters infos = parseHeader(signing);
for (Entry<String, Attrs> entry : infos.entrySet()) {
for (SignerPlugin signer : signers) {
signer.sign(this, entry.getKey());
}
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public Resource process(String source) {
Instructions make = getMakeHeader();
logger.debug("make {}", source);
for (Map.Entry<Instruction, Attrs> entry : make.entrySet()) {
Instruction instr = entry.getKey();
Matcher m = instr.getMatcher(source);
if (m.matches() || instr.isNegated()) {
Map<String, String> arguments = replace(m, entry.getValue());
List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
for (MakePlugin plugin : plugins) {
try {
Resource resource = plugin.make(builder, source, arguments);
if (resource != null) {
logger.debug("Made {} from args {} with {}", source, arguments, plugin);
return resource;
}
} catch (Exception e) {
builder.exception(e, "Plugin %s generates error when use in making %s with args %s", plugin,
source, arguments);
}
}
}
}
return null;
}
代码示例来源:origin: biz.aQute.bnd/bnd
public Resource process(String source) {
Map<Instruction,Map<String,String>> make = getMakeHeader();
builder.trace("make " + source);
for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) {
Instruction instr = entry.getKey();
Matcher m = instr.getMatcher(source);
if (m.matches() || instr.isNegated()) {
Map<String,String> arguments = replace(m, entry.getValue());
List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
for (MakePlugin plugin : plugins) {
try {
Resource resource = plugin.make(builder, source, arguments);
if (resource != null) {
builder.trace("Made " + source + " from args " + arguments + " with " + plugin);
return resource;
}
}
catch (Exception e) {
builder.error("Plugin " + plugin + " generates error when use in making " + source
+ " with args " + arguments, e);
}
}
}
}
return null;
}
代码示例来源:origin: biz.aQute/bndlib
public Resource process(String source) {
Map<Instruction,Map<String,String>> make = getMakeHeader();
builder.trace("make " + source);
for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) {
Instruction instr = entry.getKey();
Matcher m = instr.getMatcher(source);
if (m.matches() || instr.isNegated()) {
Map<String,String> arguments = replace(m, entry.getValue());
List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
for (MakePlugin plugin : plugins) {
try {
Resource resource = plugin.make(builder, source, arguments);
if (resource != null) {
builder.trace("Made " + source + " from args " + arguments + " with " + plugin);
return resource;
}
}
catch (Exception e) {
builder.error("Plugin " + plugin + " generates error when use in making " + source
+ " with args " + arguments, e);
}
}
}
}
return null;
}
代码示例来源:origin: biz.aQute.bnd/bndlib
public Resource process(String source) {
Map<Instruction,Map<String,String>> make = getMakeHeader();
builder.trace("make " + source);
for (Map.Entry<Instruction,Map<String,String>> entry : make.entrySet()) {
Instruction instr = entry.getKey();
Matcher m = instr.getMatcher(source);
if (m.matches() || instr.isNegated()) {
Map<String,String> arguments = replace(m, entry.getValue());
List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
for (MakePlugin plugin : plugins) {
try {
Resource resource = plugin.make(builder, source, arguments);
if (resource != null) {
builder.trace("Made " + source + " from args " + arguments + " with " + plugin);
return resource;
}
}
catch (Exception e) {
builder.error("Plugin " + plugin + " generates error when use in making " + source
+ " with args " + arguments, e);
}
}
}
}
return null;
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Sign the jar file. -sign : <alias> [ ';' 'password:=' <password> ] [ ';'
* 'keystore:=' <keystore> ] [ ';' 'sign-password:=' <pw> ] ( ',' ... )*
*
* @return
*/
void sign(@SuppressWarnings("unused") Jar jar) throws Exception {
String signing = getProperty("-sign");
if (signing == null)
return;
trace("Signing %s, with %s", getBsn(), signing);
List<SignerPlugin> signers = getPlugins(SignerPlugin.class);
Parameters infos = parseHeader(signing);
for (Entry<String,Attrs> entry : infos.entrySet()) {
for (SignerPlugin signer : signers) {
signer.sign(this, entry.getKey());
}
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Sign the jar file. -sign : <alias> [ ';' 'password:=' <password> ] [ ';'
* 'keystore:=' <keystore> ] [ ';' 'sign-password:=' <pw> ] ( ',' ... )*
*
* @return
*/
void sign(@SuppressWarnings("unused")
Jar jar) throws Exception {
String signing = getProperty(SIGN);
if (signing == null)
return;
trace("Signing %s, with %s", getBsn(), signing);
List<SignerPlugin> signers = getPlugins(SignerPlugin.class);
Parameters infos = parseHeader(signing);
for (Entry<String,Attrs> entry : infos.entrySet()) {
for (SignerPlugin signer : signers) {
signer.sign(this, entry.getKey());
}
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Sign the jar file. -sign : <alias> [ ';' 'password:=' <password> ] [ ';'
* 'keystore:=' <keystore> ] [ ';' 'sign-password:=' <pw> ] ( ',' ... )*
*
* @return
*/
void sign(@SuppressWarnings("unused")
Jar jar) throws Exception {
String signing = getProperty(SIGN);
if (signing == null)
return;
trace("Signing %s, with %s", getBsn(), signing);
List<SignerPlugin> signers = getPlugins(SignerPlugin.class);
Parameters infos = parseHeader(signing);
for (Entry<String,Attrs> entry : infos.entrySet()) {
for (SignerPlugin signer : signers) {
signer.sign(this, entry.getKey());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!