本文整理了Java中org.jpos.q2.QFactory.destroyQBean
方法的一些代码示例,展示了QFactory.destroyQBean
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QFactory.destroyQBean
方法的具体详情如下:
包路径:org.jpos.q2.QFactory
类名称:QFactory
方法名:destroyQBean
暂无
代码示例来源:origin: jpos/jPOS
private void undeploy (File f) {
QEntry qentry = (QEntry) dirMap.get (f);
try {
if (log != null)
log.trace ("undeploying:" + f.getCanonicalPath());
if (qentry.isQBean()) {
Object obj = qentry.getObject ();
ObjectName name = qentry.getObjectName ();
factory.destroyQBean (this, name, obj);
} else if (qentry.isOSGIBundle()) {
getLog().warn("OSGI bundle " + f.getName() + " no longer available in deploy directory");
}
if (log != null)
log.info ("undeployed:" + f.getCanonicalPath());
} catch (Exception e) {
getLog().warn ("undeploy", e);
}
}
代码示例来源:origin: jpos/jPOS
@Test
public void testDestroyQBeanThrowsNullPointerException1() throws Throwable {
String[] args = new String[0];
Hashtable<String, String> hashtable = new Hashtable<String, String>(100, 100.0F);
hashtable.put("testString", "testString");
try {
new QFactory(ObjectName.getInstance("testQFactoryParam1", hashtable), null).destroyQBean(new Q2(args), new ObjectName(
"testQFactoryParam1", "testQFactoryParam2", "testQFactoryParam3"), new ChannelAdaptor());
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
}
}
内容来源于网络,如有侵权,请联系作者删除!