Files
Brainstorm/Orb/src/com/de22/orb/optional/ResultCallbackWrapper.java

28 lines
993 B
Java
Raw Normal View History

2014-05-30 10:31:51 -07:00
/*
* Copyright (c) 2004,2009 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.de22.orb.optional;
/*
* Simply wrappers the orb wrapper's callback interface with an object that implements this orb's callback interface.
*/
public class ResultCallbackWrapper implements com.de22.orb.IResultCallback {
private com.common.orb.IResultCallback callback = null;
/**
* ResultCallbackWrapper constructor.
*/
public ResultCallbackWrapper(com.common.orb.IResultCallback callback) {
super();
this.callback = callback;
}//ResultCallbackWrapper()//
/* (non-Javadoc)
* @see com.de22.orb.IResultCallback#run(java.lang.Object)
*/
public void run(Object result) {
callback.run(result);
}//run()//
}//ResultCallbackWrapper//