autohit.common.channels
Interface Injector

All Known Implementing Classes:
SimpleInjector

public interface Injector

Version:
1.0 Version History EPG - Rewrite - 27Apr03
Author:
Erich P. Gatejen

Method Summary
 Atom defaultAtom()
          Instantiate a default atom for this kind of injector.
 Receipt defaultPost(int numeric, java.lang.Object o)
          Post a a default item.
 Receipt post(Atom a)
          Post an item
 void setChannel(Channel c)
          Set channel callback
 

Method Detail

post

public Receipt post(Atom a)
             throws ChannelException
Post an item

Returns:
a receipt
Throws:
ChannelException

defaultPost

public Receipt defaultPost(int numeric,
                           java.lang.Object o)
                    throws ChannelException
Post a a default item. Use this if you aren't sure what kind of Atom this channal normally services.

Parameters:
numeric - value
o - object to post (often a string)
Returns:
a receipt
Throws:
ChannelException

defaultAtom

public Atom defaultAtom()
Instantiate a default atom for this kind of injector. It will be completely bare.

Returns:
default atom

setChannel

public void setChannel(Channel c)
                throws ChannelException
Set channel callback

Returns:
a receipt
Throws:
ChannelException


Test.