net.jangaroo.exml.model
Class ConfigClassRegistry

java.lang.Object
  extended by net.jangaroo.exml.model.ConfigClassRegistry

public final class ConfigClassRegistry
extends Object


Constructor Summary
ConfigClassRegistry(ExmlConfiguration config)
           
 
Method Summary
 ExmlConfiguration getConfig()
           
 ConfigClass getConfigClassByName(String name)
          Get a ConfigClass for the given name.
 Collection<ConfigClass> getRegisteredConfigClasses()
          Returns the list of registered Config classes
 void scanAllAsFiles()
          Scans all AS files the in the config class package
 void scanAllExmlFiles()
          Setup the config class registry by scanning for .exml files, parsing them and adding their models to this registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigClassRegistry

public ConfigClassRegistry(ExmlConfiguration config)
                    throws IOException
Throws:
IOException
Method Detail

getConfig

public ExmlConfiguration getConfig()

getRegisteredConfigClasses

public Collection<ConfigClass> getRegisteredConfigClasses()
Returns the list of registered Config classes

Returns:
list of registered Config classes

scanAllAsFiles

public void scanAllAsFiles()
Scans all AS files the in the config class package


scanAllExmlFiles

public void scanAllExmlFiles()
Setup the config class registry by scanning for .exml files, parsing them and adding their models to this registry. This has to be called before you use the registry once.


getConfigClassByName

public ConfigClass getConfigClassByName(String name)
Get a ConfigClass for the given name. Returns null if no class was found

Parameters:
name - the name of the class
Returns:
the configClass or null if none was found


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.