X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.server.jcr%2Fnewsrc%2Forg%2Fargeo%2Fjcr%2FJcrCallback.java;fp=org.argeo.server.jcr%2Fnewsrc%2Forg%2Fargeo%2Fjcr%2FJcrCallback.java;h=0c4706f84ea6868c185ac1969f68bd300ecccce5;hb=2e854796e0a27c9ef9e29b0664132a87ddbd1285;hp=0000000000000000000000000000000000000000;hpb=a677a9a685497f09b30fc8e1f6a63a1e9dd535ef;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.server.jcr/newsrc/org/argeo/jcr/JcrCallback.java b/org.argeo.server.jcr/newsrc/org/argeo/jcr/JcrCallback.java new file mode 100644 index 000000000..0c4706f84 --- /dev/null +++ b/org.argeo.server.jcr/newsrc/org/argeo/jcr/JcrCallback.java @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2007-2012 Argeo GmbH + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.argeo.jcr; + +import javax.jcr.Session; + +/** An arbitrary execution on a JCR session, optionally returning a result. */ +public interface JcrCallback { + public Object execute(Session session); +}