/** * Bootstraps a Limbus System engine that utilizes {@link LimbusSystem} to create a * runtime environment of components. * * @param system * The uninitialized configured {@link LimbusSystem} * @throws Exception * Thrown on any error while bootstrapping. */ public static void bootstrapLimbusSystem(LimbusSystem system) throws Exception { SystemEngine engine = new SystemEngine(system); bootstrap(engine); }
/** * Bootstraps a Limbus System engine that utilizes {@link LimbusSystem} and a valid system description to create a * runtime environment of components. The system descriptor is specified via {@link InputStream}. * * @param systemDescriptor * The input stream representing the XML system descriptor. * * @throws SerializeException * Thrown if the {@link LimbusSystem} cannot be created from the specified system descriptor. * @throws Exception * Thrown on any error while bootstrapping. */ public static void bootstrapLimbusSystem(InputStream systemDescriptor) throws SerializeException, Exception { SystemEngine engine = new SystemEngine(systemDescriptor); bootstrap(engine); }
/** * Bootstraps an engine implementation specified by its class. * * @param engineClass * The engine class. * @throws Exception * Thrown on any bootstrap error. */ public static void bootstrap(Class<? extends Engine> engineClass) throws Exception { Engine engine; try { engine = getEngineByClass(engineClass); } catch (Exception e) { throw new Exception( String.format("Cannot get engine implementation using the specified class %s", engineClass.getName()), e); } bootstrap(engine); }
/** * Bootstraps a Limbus System engine that utilizes {@link LimbusSystem} and a valid system description to create a * runtime environment of components. The system descriptor can be provided in the following ways: * <ul> * <li>Place a file <tt>limbus-system.xml</tt> in the Limbus configuration directory.</li> * <li>Place a Limbus Property file for class {@link SystemEngine} overriding the default system descriptor filename. * </li> * </ul> * * @throws Exception * Thrown on any bootstrapping error. */ public static void bootstrapLimbusSystem() throws Exception { Engine engine; try { engine = getEngineByClass(SystemEngine.class); } catch (Exception e) { throw new Exception( String.format("Cannot get engine implementation using the specified class %s", SystemEngine.class.getName()), e); } bootstrap(engine); }