org.apache.karaf.util.properties
Class FileLockUtils

java.lang.Object
  extended by org.apache.karaf.util.properties.FileLockUtils

public final class FileLockUtils
extends Object


Nested Class Summary
static interface FileLockUtils.Callable<T>
           
static interface FileLockUtils.CallableWithProperties<T>
           
static interface FileLockUtils.Runnable
           
static interface FileLockUtils.RunnableWithProperties
           
 
Method Summary
static
<T> T
execute(File file, FileLockUtils.Callable<T> callback)
           
static
<T> T
execute(File file, FileLockUtils.CallableWithProperties<T> callback)
           
static void execute(File file, FileLockUtils.Runnable callback)
           
static void execute(File file, FileLockUtils.RunnableWithProperties callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public static void execute(File file,
                           FileLockUtils.Runnable callback)
                    throws IOException
Throws:
IOException

execute

public static <T> T execute(File file,
                            FileLockUtils.Callable<T> callback)
                 throws IOException
Throws:
IOException

execute

public static void execute(File file,
                           FileLockUtils.RunnableWithProperties callback)
                    throws IOException
Throws:
IOException

execute

public static <T> T execute(File file,
                            FileLockUtils.CallableWithProperties<T> callback)
                 throws IOException
Throws:
IOException


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.