// Generated File : do not edit import org.objectweb.jonathan.apis.kernel.Context; import org.objectweb.jonathan.apis.kernel.Component; import org.objectweb.jonathan.apis.kernel.JonathanException; import org.objectweb.jonathan.apis.kernel.InternalException; import org.objectweb.jonathan.libs.kernel.JConfigurationFactory; import org.objectweb.jonathan.libs.kernel.JComponent; /** * This class provides a method to compute the bootstrap configuration, * generated from the file Config.kcf. */ public final class Config { static final JConfigurationFactory context_factory = new JConfigurationFactory(); /** * This configuration represents the configuration specified in Config.kcf. * It is used to generate the bootstrap configuration. */ private static final Context initial_configuration = context_factory.newContext(); static { try{ Component PROPERTY0 = new JComponent(String.class,"Kilim is great"); initial_configuration.addElement("text",PROPERTY0,'/'); if (1 == 0) throw new JonathanException(); } catch(JonathanException e){ //Cannot happen. e.printStackTrace(System.err); throw new InternalException("Unexpected exception."); } } /** * Returns the effective bootstrap configuration. * @param c the class of the caller of this method. * @return the bootstrap configuration. */ public static Context newConfiguration(Class c){ return org.objectweb.jonathan.libs.kernel.helpers.Kernel.newConfiguration(initial_configuration,c); } }