org.specrunner.core.pipes
Class PipeConfiguration

java.lang.Object
  extended by org.specrunner.core.pipes.PipeConfiguration

public final class PipeConfiguration
extends Object

Binds a configuration to the channel.

Author:
Thiago Santos

Field Summary
static String CONFIGURATION
          Configuration.
 
Method Summary
static IChannel bind(IChannel channel, IConfiguration obj)
          Bind the object to the channel.
static IConfiguration lookup(IChannel channel)
          Get the configuration from channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION

public static final String CONFIGURATION
Configuration.

See Also:
Constant Field Values
Method Detail

bind

public static IChannel bind(IChannel channel,
                            IConfiguration obj)
Bind the object to the channel.

Parameters:
channel - The channel.
obj - The object.
Returns:
The channel itself.

lookup

public static IConfiguration lookup(IChannel channel)
                             throws NotFoundException,
                                    InvalidTypeException
Get the configuration from channel.

Parameters:
channel - The channel.
Returns:
The configuration.
Throws:
NotFoundException - On lookup errors.
InvalidTypeException - On typing errors.


Copyright © 2014. All rights reserved.