public String getName() { return renderEngine.getName(); }
/** * Different RenderEngines can register themselves with the EngineManager * factory to be available with EngineManager.getInstance(); * * @param engine * RenderEngine instance, e.g. SnipRenderEngine */ public static synchronized void registerEngine(RenderEngine engine) { if (null == availableEngines) { availableEngines = new HashMap(); } availableEngines.put(engine.getName(), engine); }
/** * Different RenderEngines can register themselves with the EngineManager * factory to be available with EngineManager.getInstance(); * * @param engine * RenderEngine instance, e.g. SnipRenderEngine */ public static synchronized void registerEngine(RenderEngine engine) { if (null == availableEngines) { availableEngines = new HashMap(); } availableEngines.put(engine.getName(), engine); }
/** * Get an instance of a RenderEngine. This is a factory method. Defaults to * a default RenderEngine. Currently this is a basic EngineManager with no * additional features that is distributed with Radeox. * * @return engine default RenderEngine */ public static synchronized RenderEngine getInstance() { // availableEngines = null; if (null == availableEngines) { availableEngines = new HashMap(); } if (!availableEngines.containsKey(DEFAULT)) { RenderEngine engine = new BaseRenderEngine(); availableEngines.put(engine.getName(), engine); } return (RenderEngine) availableEngines.get(DEFAULT); }
/** * Get an instance of a RenderEngine. This is a factory method. Defaults to * a default RenderEngine. Currently this is a basic EngineManager with no * additional features that is distributed with Radeox. * * @return engine default RenderEngine */ public static synchronized RenderEngine getInstance() { // availableEngines = null; if (null == availableEngines) { availableEngines = new HashMap(); } if (!availableEngines.containsKey(DEFAULT)) { RenderEngine engine = new BaseRenderEngine(); availableEngines.put(engine.getName(), engine); } return (RenderEngine) availableEngines.get(DEFAULT); }