@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 SystemAccess
public SystemAccess.Console console()
console
in interface SystemAccess
public Path currentWorkingDirectory()
currentWorkingDirectory
in interface SystemAccess
public PrintStream err()
err
in interface SystemAccess
public PrintStream out()
out
in interface SystemAccess
public void setProperty(String name, String value)
setProperty
in interface SystemAccess
public Path move(Path source, Path target, CopyOption... options) throws IOException
move
in interface SystemAccess
IOException
public void copyDirectory(Path source, Path target) throws IOException
copyDirectory
in interface SystemAccess
IOException
public Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory
in interface SystemAccess
IOException
public Path createTemporaryDirectory(String prefix, FileAttribute<?>... attrs) throws IOException
createTemporaryDirectory
in interface SystemAccess
IOException
public void recursiveDelete(Path tmpNiogit) throws IOException
recursiveDelete
in interface SystemAccess
IOException
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.