net.sf.bigyo.container
Class Main

java.lang.Object
  extended by net.sf.bigyo.container.Main

public class Main
extends Object

Created on 2004.03.31.

Author:
zsombor

Nested Class Summary
 class Main.ConfigurationChecker
           
 
Constructor Summary
Main()
           
Main(Reader componentRegistryReader)
          Create the container from the specified registry stream.
Main(String componentRegistryFile)
          Create the container from the specified registry file.
 
Method Summary
protected  Object createComponentFromFile(String componentConfigFile)
           
 void createXStream()
          Deprecated. this is an internal API method, please avoid the usage
 String getAsXML(ComponentConfig conf)
          Deprecated. @param conf
 CompactReflectionConverter getCompactReflectionConverter()
           
 Object getComponent(String name)
           
 ProfileChecker getProfileChecker()
           
 Registry getRegistry()
           
 Repository getRepository()
           
 List getStartupComponentNames()
           
 com.thoughtworks.xstream.XStream getXStream()
           
 boolean hasProfile(String name)
           
 void loadComponentRegistry(Reader source)
          load additional registry file from the specified source.
 void loadConfigurations(File directory)
          betolti az adott konyvtarban levo osszes .conf.xml -re vegzodo fajlt.
protected  void notifyReconfigurationListeners(Object component, Object oldConfigBean, ComponentConfig newConfig)
           
 void refreshConfiguration(File directory)
           
 void setProfileChecker(ProfileChecker checker)
           
 void startup()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()

Main

public Main(String componentRegistryFile)
     throws FileNotFoundException
Create the container from the specified registry file.

Parameters:
componentRegistryFile - the path to the xml file.
Throws:
FileNotFoundException - if no registry is found

Main

public Main(Reader componentRegistryReader)
Create the container from the specified registry stream.

Parameters:
componentRegistryReader -
Method Detail

getRepository

public Repository getRepository()

getRegistry

public Registry getRegistry()

createXStream

public void createXStream()
Deprecated. this is an internal API method, please avoid the usage


loadComponentRegistry

public void loadComponentRegistry(Reader source)
load additional registry file from the specified source.

Parameters:
source -

createComponentFromFile

protected Object createComponentFromFile(String componentConfigFile)
                                  throws FileNotFoundException,
                                         ContainerException,
                                         com.thoughtworks.xstream.io.StreamException
Throws:
FileNotFoundException
ContainerException
com.thoughtworks.xstream.io.StreamException

loadConfigurations

public void loadConfigurations(File directory)
                        throws ContainerException
betolti az adott konyvtarban levo osszes .conf.xml -re vegzodo fajlt.

Parameters:
directory -
Throws:
IOException
ContainerException

refreshConfiguration

public void refreshConfiguration(File directory)
                          throws ContainerException
Throws:
ContainerException

getComponent

public Object getComponent(String name)
                    throws ContainerException
Throws:
ContainerException

notifyReconfigurationListeners

protected void notifyReconfigurationListeners(Object component,
                                              Object oldConfigBean,
                                              ComponentConfig newConfig)

getStartupComponentNames

public List getStartupComponentNames()

startup

public void startup()
             throws ContainerException
Throws:
ContainerException

stop

public void stop()
          throws ContainerException
Throws:
ContainerException

getXStream

public com.thoughtworks.xstream.XStream getXStream()

getAsXML

public String getAsXML(ComponentConfig conf)
Deprecated. @param conf

Teszt metodus.

Returns:

hasProfile

public boolean hasProfile(String name)

getCompactReflectionConverter

public CompactReflectionConverter getCompactReflectionConverter()
Returns:
Returns the compactReflectionConverter.

getProfileChecker

public ProfileChecker getProfileChecker()
Returns:
Returns the checker.

setProfileChecker

public void setProfileChecker(ProfileChecker checker)
Parameters:
checker - The checker to set.


Copyright © 2004 Sourceforge.net. All Rights Reserved.