@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() |
Path |
createDirectory(Path dir,
FileAttribute<?>... attrs) |
PrintStream |
err() |
void |
exit(int status) |
Path |
move(Path source,
Path target,
CopyOption... options) |
PrintStream |
out() |
void |
setProperty(String name,
String value) |
public void exit(int status)
exit in interface SystemAccesspublic SystemAccess.Console console()
console 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 Path createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException
createDirectory in interface SystemAccessIOExceptionCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.