@ApplicationScoped public class RealSystemAccess extends Object implements SystemAccess
SystemAccess.Console, SystemAccess.HaltingException| Constructor and Description |
|---|
RealSystemAccess() |
| Modifier and Type | Method and Description |
|---|---|
SystemAccess.Console |
console() |
void |
copyDirectory(Path source,
Path target) |
Path |
createDirectory(Path dir,
FileAttribute<?>... attrs) |
Path |
createTemporaryDirectory(String prefix,
FileAttribute<?>... attrs) |
Path |
currentWorkingDirectory() |
PrintStream |
err() |
<T> T |
exit(int status) |
Path |
move(Path source,
Path target,
CopyOption... options) |
PrintStream |
out() |
void |
recursiveDelete(Path tmpNiogit) |
void |
setProperty(String name,
String value) |
public <T> T exit(int status)
exit in interface SystemAccesspublic SystemAccess.Console console()
console in interface SystemAccesspublic Path currentWorkingDirectory()
currentWorkingDirectory in interface SystemAccesspublic PrintStream err()
err in interface SystemAccesspublic PrintStream out()
out in interface SystemAccesspublic void setProperty(String name, String value)
setProperty in interface SystemAccesspublic Path move(Path source, Path target, CopyOption... options) throws IOException
move in interface SystemAccessIOExceptionpublic void copyDirectory(Path source, Path target) throws IOException
copyDirectory in interface SystemAccessIOExceptionpublic Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory in interface SystemAccessIOExceptionpublic Path createTemporaryDirectory(String prefix, FileAttribute<?>... attrs) throws IOException
createTemporaryDirectory in interface SystemAccessIOExceptionpublic void recursiveDelete(Path tmpNiogit) throws IOException
recursiveDelete in interface SystemAccessIOExceptionCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.