public FacesEnvironment() { this(ApplicationServer.createApplicationServer()); }
public FacesEnvironment() { this(ApplicationServer.createApplicationServer()); }
/** * Creates implementation of {@link ApplicationServer} according to system property. * If system property is not set, creates default implementation. * * @return server or default */ public static ApplicationServer createApplicationServer() { String applicationServerClassName = System.getProperty(APPLICATION_SERVER_PROPERTY); if (applicationServerClassName != null) { return createApplicationServer(applicationServerClassName); } return new StagingServer(); }
/** * Creates implementation of {@link ApplicationServer} according to system property. * If system property is not set, creates default implementation. * * @return server or default */ public static ApplicationServer createApplicationServer() { String applicationServerClassName = System.getProperty(APPLICATION_SERVER_PROPERTY); if (applicationServerClassName != null) { return createApplicationServer(applicationServerClassName); } return new StagingServer(); }