use of jp.ossc.nimbus.ioc.FacadeValue in project nimbus by nimbus-org.
the class FacadeValueJournalEditorService method processBlock.
protected boolean processBlock(EditorFinder finder, Object key, Object value, StringBuilder buf) {
boolean isMake = super.processBlock(finder, key, value, buf);
final FacadeValue facadeVal = (FacadeValue) value;
if (isOutputHeaders()) {
if (isMake) {
buf.append(getLineSeparator());
}
makeHeadersFormat(finder, key, facadeVal, buf);
isMake = true;
}
return isMake;
}
use of jp.ossc.nimbus.ioc.FacadeValue in project nimbus by nimbus-org.
the class UnsynchFacadeCallerService method handleDequeuedObject.
/**
* {@link Queue}から取り出した{@link UnsyncRequest}の処理を行う。<p>
*
* @param obj Queueから取り出したUnsyncRequest
* @exception Throwable IOC Facade EJB呼び出しに失敗した場合
*/
public void handleDequeuedObject(Object obj) throws Throwable {
if (obj == null) {
return;
}
final UnsyncRequest request = (UnsyncRequest) obj;
final FacadeValue facadeValue = request.getFacadeValue();
Object result = null;
try {
result = request.getFacadeCaller().syncFacadeCall(facadeValue);
} catch (RuntimeException e) {
result = e;
}
final Queue replyQueue = request.getReplyQueue();
if (replyQueue != null) {
replyQueue.push(result);
}
}
Aggregations