private static void initialize() throws InitializationException { if (instance.environment == null) { IBeanFactory factory = new AbstractBeanFactory() { @Override public String getSpringXMLFilename() { return "cdf.spring.xml"; } }; // try to get the environment from the configuration // will return the DefaultEnvironment by default ICdfEnvironment env = instance.getConfiguredEnvironment(factory); if (env != null) { env.init(factory); } instance.environment = env; } }
protected IUserContentAccess getUserContentAccess(String path) { return CdfEngine.getUserContentReader(path); }