|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectautohit.common.channels.SimpleInjector
A very simple injector. Post anything and everything. You can set a default sender ID with setDefaultSenderID. If it is set as anything but null, when an atom without a sender id is posted, the sender id will be changed to this default.
EPG - Rewrite - 27Apr03
EPG - Add default post - 24Jul03
EPG - Set default sender ID - 23Sep03
| Field Summary | |
java.lang.String |
defaultSenderID
Default sender ID. |
| Constructor Summary | |
SimpleInjector()
Default contructor |
|
| 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 |
void |
setDefaultSenderID(java.lang.String id)
Post an item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String defaultSenderID
| Constructor Detail |
public SimpleInjector()
| Method Detail |
public void setDefaultSenderID(java.lang.String id)
id - The new default sender ID. If set to null, it will not try and set the sender ID.
public Receipt post(Atom a)
throws ChannelException
post in interface Injectora - An atom to post
ChannelException
public void setChannel(Channel c)
throws ChannelException
setChannel in interface InjectorChannelException
public Receipt defaultPost(int numeric,
java.lang.Object o)
throws ChannelException
defaultPost in interface Injectornumeric - valueo - object to post (often a string)
ChannelExceptionpublic Atom defaultAtom()
defaultAtom in interface Injector
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||