|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.anneck.jcast.listeners.ListenerThreadFactory
This Factory creates ListenerThreads.
Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configuration for the ThreadFactory. |
void |
configureThread(org.apache.avalon.framework.configuration.Configuration configuration)
Configuration for the created Thread. |
java.lang.Object |
create(java.lang.String listenerThreadName)
Creates a ListenerThread |
java.lang.Object |
create(java.lang.String listenerThreadName,
IChannel channel)
Creates a ListenerThread , subscribed to a Channel |
java.lang.Object |
create(java.lang.String listenerThreadName,
IChannel channel,
ISource source)
Creates a ListenerThread , subscribed to a Source in a Channel |
static ListenerThreadFactory |
getInstance()
Access to singleton via getInstance method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ListenerThreadFactory getInstance()
public java.lang.Object create(java.lang.String listenerThreadName)
ListenerThreadName
- The name.IListenerThread
.public java.lang.Object create(java.lang.String listenerThreadName, IChannel channel) throws ListenerException, ChannelException
listenerThreadName
- The name.channel
- The IChannel
to subscribe to.IListenerThread
.public java.lang.Object create(java.lang.String listenerThreadName, IChannel channel, ISource source) throws ListenerException, ChannelException
listenerThreadName
- The name.channel
- The IChannel
to subscribe to.source
- The ISource
to subscribe to.IListenerThread
.public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configuration
- Configuration object to use.org.apache.avalon.framework.configuration.ConfigurationException
- Error during configuration.public void configureThread(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
- The configuration object.org.apache.avalon.framework.configuration.ConfigurationException
- Error during configuration.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |