de.anneck.jcast.channels
Class ChannelThreadFactory

java.lang.Object
  |
  +--de.anneck.jcast.channels.ChannelThreadFactory
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, IFactory

public final class ChannelThreadFactory
extends java.lang.Object
implements org.apache.avalon.framework.configuration.Configurable, IFactory

This Factory creates ChannelThreads.

Version:
$Revision: 1.10 $
Author:
andre.anneck@web.de

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 channelThreadName)
          Creates a Channel Object.
 java.lang.Object create(java.lang.String channelThreadName, org.apache.avalon.framework.configuration.Configuration conf)
          Creates a Channel Object.
static ChannelThreadFactory 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

getInstance

public static ChannelThreadFactory getInstance()
Access to singleton via getInstance method
Returns:
Instance of the ChannelThreadFactory.

create

public java.lang.Object create(java.lang.String channelThreadName,
                               org.apache.avalon.framework.configuration.Configuration conf)
                        throws org.apache.avalon.framework.configuration.ConfigurationException
Creates a Channel Object. The name of the channel has to match the definitions of channels in the section of the jcast-config.xml
Parameters:
channelThreadName - The unique name under which this channel is to be created.
Returns:
The Channel object.

create

public java.lang.Object create(java.lang.String channelThreadName)
Creates a Channel Object. The name of the channel has to match the definitions of channels in the section of the jcast-config.xml
Parameters:
channelThreadName - The unique name under which this channel is to be created.
Returns:
The Channel object.

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configuration for the ThreadFactory.
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Parameters:
configuration - The configuration object.
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - Error during configuration.

configureThread

public void configureThread(org.apache.avalon.framework.configuration.Configuration configuration)
                     throws org.apache.avalon.framework.configuration.ConfigurationException
Configuration for the created Thread.
Parameters:
configuration - The configuration object.
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - Error during configuration.