org.kabeja.ui.impl
Class ServiceContainer

java.lang.Object
  extended by org.kabeja.ui.impl.ServiceContainer
All Implemented Interfaces:
Application, Component, ServiceManager

public class ServiceContainer
extends java.lang.Object
implements ServiceManager, Application


Field Summary
protected  java.util.List components
           
protected  ProcessingManager manager
           
 
Fields inherited from interface org.kabeja.ui.Application
SERVICE
 
Constructor Summary
ServiceContainer()
           
 
Method Summary
 void addComponent(Component c)
           
 Component[] getServiceComponents(java.lang.String service)
           
protected  java.util.List getServiceComponentsByServiceField(java.lang.String service)
           
 void setProcessingManager(ProcessingManager manager)
           
 void setupComponents()
           
 void start()
          Starts the application.
 void stop()
          Stops the application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

protected java.util.List components

manager

protected ProcessingManager manager
Constructor Detail

ServiceContainer

public ServiceContainer()
Method Detail

addComponent

public void addComponent(Component c)

getServiceComponents

public Component[] getServiceComponents(java.lang.String service)
Specified by:
getServiceComponents in interface ServiceManager
Parameters:
service - the searched service
Returns:
an array of Components which provides the service

getServiceComponentsByServiceField

protected java.util.List getServiceComponentsByServiceField(java.lang.String service)

setupComponents

public void setupComponents()

start

public void start()
Description copied from interface: Application
Starts the application.

Specified by:
start in interface Application

stop

public void stop()
Description copied from interface: Application
Stops the application

Specified by:
stop in interface Application

setProcessingManager

public void setProcessingManager(ProcessingManager manager)