org.specrunner.core.pipes.plugin
Class PipePlugin

java.lang.Object
  extended by org.specrunner.core.pipes.plugin.PipePlugin

public final class PipePlugin
extends Object

Bind a plugin as input information.

Author:
Thiago Santos

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

Field Detail

PLUGIN

public static final String PLUGIN
Configuration.

See Also:
Constant Field Values
Method Detail

bind

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

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

lookup

public static IPlugin lookup(IChannel channel)
                      throws NotFoundException,
                             InvalidTypeException
Recover plugin from channel.

Parameters:
channel - The channel.
Returns:
The plugin.
Throws:
NotFoundException - On lookup errors.
InvalidTypeException - On type errors.


Copyright © 2014. All rights reserved.