JBoss STDIO 1.0.0.GA

org.jboss.stdio
Class SimpleStdioContextSelector

java.lang.Object
  extended by org.jboss.stdio.SimpleStdioContextSelector
All Implemented Interfaces:
StdioContextSelector

public final class SimpleStdioContextSelector
extends Object
implements StdioContextSelector

A simple org.jboss.stdio.StdioContextSelector implementation which always selects the same context.


Constructor Summary
SimpleStdioContextSelector(StdioContext context)
          Construct a new instance.
 
Method Summary
 StdioContext getStdioContext()
          Get the current stdio context.
 void install()
          Attempt to install this context selector as the current one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStdioContextSelector

public SimpleStdioContextSelector(StdioContext context)
Construct a new instance.

Parameters:
context - the context to use (must not be null)
Method Detail

getStdioContext

public StdioContext getStdioContext()
Get the current stdio context. Must not return null.

Specified by:
getStdioContext in interface StdioContextSelector
Returns:
the current stdio context

install

public void install()
Attempt to install this context selector as the current one.

See Also:
StdioContext.setStdioContextSelector(StdioContextSelector)

JBoss STDIO 1.0.0.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.