X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.layer0%2Fsrc%2Forg%2Fsimantics%2Fdb%2Flayer0%2Fadapter%2FFunction.java;h=b97244a60b535acf0caa1e637003333eb9b14509;hb=2ee4ce7f7cb1df434c7552d4fce34fd7330352e5;hp=4c2e97b4eece7636a74e5cbdedb5b27cc87b5678;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Function.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Function.java index 4c2e97b4e..b97244a60 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Function.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/adapter/Function.java @@ -1,24 +1,24 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.db.layer0.adapter; - -import org.simantics.db.RequestProcessor; -import org.simantics.db.layer0.exception.ApplicationException; -import org.simantics.db.procedure.Listener; - -public interface Function { - - T apply(RequestProcessor processor, Object ... parameters) throws ApplicationException; - T apply(RequestProcessor processor, Listener listener, Object ... parameters) throws ApplicationException; - // void apply(RequestProcessor processor, Procedure listener, Object ... parameters) throws ApplicationException; - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db.layer0.adapter; + +import org.simantics.db.RequestProcessor; +import org.simantics.db.layer0.exception.ApplicationException; +import org.simantics.db.procedure.Listener; + +public interface Function { + + T apply(RequestProcessor processor, Object ... parameters) throws ApplicationException; + T apply(RequestProcessor processor, Listener listener, Object ... parameters) throws ApplicationException; + // void apply(RequestProcessor processor, Procedure listener, Object ... parameters) throws ApplicationException; + +}