private static WrapperIF getWrapper() { if (wrapper != null) return wrapper; if (JspFactory.getDefaultFactory() == null) // ontojsp can't set the default factory, since ontojsp needs to // be able to run inside app servers, which will set the default. // in the test suite there will therefore be no default factory. return new JSP12Wrapper(); JspEngineInfo engine = JspFactory.getDefaultFactory().getEngineInfo(); String version = engine.getSpecificationVersion(); switch (version) { case "2.0": return new JSP20Wrapper(); case "1.2": return new JSP12Wrapper(); default: return new JSP11Wrapper(); } }
@Override public JspEngineInfo getEngineInfo() { return new JspEngineInfo() { @Override public String getSpecificationVersion() { return SPEC_VERSION; } }; }
public JspEngineInfo getEngineInfo() { return new JspEngineInfo() { public String getSpecificationVersion() { return SPEC_VERSION; } }; }
@Override public JspEngineInfo getEngineInfo() { return info; }
/** * <p> * called to get implementation-specific information on the current JSP engine. * </p> * * @return a JspEngineInfo object describing the current JSP engine */ public abstract JspEngineInfo getEngineInfo();