Beispiel #1
0
  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;
    }
  }
Beispiel #2
0
 protected IUserContentAccess getUserContentAccess(String path) {
   return CdfEngine.getUserContentReader(path);
 }