/******************************************************************************* * Copyright © 2011, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation * *******************************************************************************/ package org.eclipse.edt.javart; import java.util.Locale; import org.eclipse.edt.javart.resources.JavartProperties; import org.eclipse.edt.javart.resources.LocalizedText; import org.eclipse.edt.javart.resources.RecoverableResource; import org.eclipse.edt.javart.resources.ResourceManager; import org.eclipse.edt.javart.resources.StartupInfo; import org.eclipse.edt.javart.resources.Trace; import eglx.lang.AnyException; public interface RunUnit { ResourceManager getResourceManager(); JavartProperties getProperties(); void commit() throws AnyException; void rollback() throws AnyException; void registerResource(RecoverableResource rs); void unregisterResource(RecoverableResource rs); void start(Program exec) throws Exception; void exit(); void transferCleanup(boolean isTransaction); StartupInfo getStartupInfo(); void endRunUnit(Executable exec) throws Exception; void endRunUnit(Executable exec, Exception ex) throws Exception; int getReturnCode(); void setReturnCode(int code); Executable loadExecutable(String name) throws AnyException; Executable loadLibrary(String name) throws AnyException; void switchLocale(Locale loc); LocalizedText getLocalizedText(); Trace getTrace(); Executable getActiveExecutable() throws AnyException; void setActiveExecutable(Executable executable); Object jndiLookup(String name) throws Exception; }