org.ow2.shelbie.core.internal.system
Class DefaultSystemService

java.lang.Object
  extended by org.ow2.shelbie.core.internal.system.DefaultSystemService
All Implemented Interfaces:
org.ow2.shelbie.core.system.SystemService

public class DefaultSystemService
extends Object
implements org.ow2.shelbie.core.system.SystemService

Default SystemService.


Constructor Summary
DefaultSystemService(org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 PrintStream getErr()
           
 InputStream getIn()
           
 PrintStream getOut()
           
 boolean isStopping()
           
 void setErr(PrintStream err)
          Sets the Stream for writing System.err.
 void setIn(InputStream in)
          Sets the Stream for reading.
 void setOut(PrintStream out)
          Sets the Stream for writing System.out.
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSystemService

public DefaultSystemService(org.osgi.framework.BundleContext bundleContext)
Method Detail

shutdown

public void shutdown()
Specified by:
shutdown in interface org.ow2.shelbie.core.system.SystemService

isStopping

public boolean isStopping()
Specified by:
isStopping in interface org.ow2.shelbie.core.system.SystemService

setIn

public void setIn(InputStream in)
Sets the Stream for reading.

Specified by:
setIn in interface org.ow2.shelbie.core.system.SystemService
Parameters:
in - the given inputstream

getIn

public InputStream getIn()
Specified by:
getIn in interface org.ow2.shelbie.core.system.SystemService
Returns:
the inputstream System.in.

setOut

public void setOut(PrintStream out)
Sets the Stream for writing System.out.

Specified by:
setOut in interface org.ow2.shelbie.core.system.SystemService
Parameters:
out - the given printstream

getOut

public PrintStream getOut()
Specified by:
getOut in interface org.ow2.shelbie.core.system.SystemService
Returns:
the printstream System.out.

setErr

public void setErr(PrintStream err)
Sets the Stream for writing System.err.

Specified by:
setErr in interface org.ow2.shelbie.core.system.SystemService
Parameters:
err - the given printstream

getErr

public PrintStream getErr()
Specified by:
getErr in interface org.ow2.shelbie.core.system.SystemService
Returns:
the printstream System.out.


Copyright © 2013 OW2 Consortium. All Rights Reserved.