public NodeBinderFactoryConfiguration createBindings() { NodeBinderFactoryConfiguration nbf = new NodeBinderFactoryConfiguration(); conf.setBinderFactory(nbf); return nbf; }
public LibraryFactoryConfiguration createLibraries() { LibraryFactoryConfiguration mf = new LibraryFactoryConfiguration(); conf.setMethodFactory(mf); return mf; }
public TypeFactoryConfiguration createTypes() { TypeFactoryConfiguration mf = new TypeFactoryConfiguration(); conf.setTypeFactory(mf); return mf; }
if ((existing = OpenLConfiguration.getInstance(category, AntOpenLBuilder.userCxt.top())) != null) { if ((extendsConfiguration = OpenLConfiguration.getInstance(extendsCategory, AntOpenLBuilder.userCxt.top())) == null) { throw new OpenConfigurationException("The extended category " + extendsCategory conf.setParent(extendsConfiguration); conf.setConfigurationContext(cxt); conf.validate(cxt); OpenLConfiguration.register(category, AntOpenLBuilder.userCxt.top(), conf, shared);
public void execute(IUserContext ucxt) { try { if (category == null) { throw new OpenConfigurationException("The category must be set", null, null); } IOpenLConfiguration existing; if ((existing = ucxt.getOpenLConfiguration(category)) != null) { saveConfiguration(existing); return; } IOpenLConfiguration extendsConfiguration = null; if (extendsCategory != null) { if ((extendsConfiguration = ucxt.getOpenLConfiguration(extendsCategory)) == null) { throw new OpenConfigurationException("The extended category " + extendsCategory + " must have been loaded first", null, null); } } IConfigurableResourceContext cxt = getConfigurationContext(extendsConfiguration, ucxt); conf.setParent(extendsConfiguration); conf.setConfigurationContext(cxt); conf.validate(cxt); ucxt.registerOpenLConfiguration(category, conf); saveConfiguration(conf); } catch (Exception e) { e.printStackTrace(System.err); throw RuntimeExceptionWrapper.wrap(e); } }
public ClassFactory createGrammar() { ClassFactory cf = new ClassFactory(); cf.setExtendsClassName(IGrammar.class.getName()); conf.setGrammarFactory(cf); return cf; }
public void resetOpenL() { userContext = null; OpenL.reset(); OpenLConfiguration.reset(); HashMap<?, ClassLoader> old = ClassLoaderFactory.reset(); JavaOpenClass.resetAllClassloaders(old); }
IOpenLConfiguration config = OpenLConfiguration.getInstance(name, factory.getUserContext());
public void addConfiguredTypeFactory(OpenFactoryConfiguration of) { conf.addOpenFactory(of); }
public void execute(IUserContext ucxt) { try { if (category == null) { throw new OpenConfigurationException("The category must be set", null, null); } IOpenLConfiguration existing; if ((existing = ucxt.getOpenLConfiguration(category)) != null) { saveConfiguration(existing); return; } IOpenLConfiguration extendsConfiguration = null; if (extendsCategory != null) { if ((extendsConfiguration = ucxt.getOpenLConfiguration(extendsCategory)) == null) { throw new OpenConfigurationException("The extended category " + extendsCategory + " must have been loaded first", null, null); } } IConfigurableResourceContext cxt = getConfigurationContext(extendsConfiguration, ucxt); conf.setParent(extendsConfiguration); conf.setConfigurationContext(cxt); conf.validate(cxt); ucxt.registerOpenLConfiguration(category, conf); saveConfiguration(conf); } catch (Exception e) { e.printStackTrace(System.err); throw RuntimeExceptionWrapper.wrap(e); } }
public ClassFactory createGrammar() { ClassFactory cf = new ClassFactory(); cf.setExtendsClassName(IGrammar.class.getName()); conf.setGrammarFactory(cf); return cf; }
public void reset(ReloadType reloadType) throws Exception { switch (reloadType) { case FORCED: OpenL.reset(); OpenLConfiguration.reset(); ClassLoaderFactory.reset(); case RELOAD: modulesCache.reset(); case SINGLE: // Clear the cache of dependency manager, as the project has been modified. studio.getDependencyManager() .reset(new Dependency( DependencyType.MODULE, new IdentifierNode(null, null, moduleInfo.getName(), null))); break; } setModuleInfo(moduleInfo, reloadType); savedSearches = null; projectRoot = null; }
public TypeFactoryConfiguration createTypes() { TypeFactoryConfiguration mf = new TypeFactoryConfiguration(); conf.setTypeFactory(mf); return mf; }
public ClassFactory createGrammar() { ClassFactory cf = new ClassFactory(); cf.setExtendsClassName(IGrammar.class.getName()); conf.setGrammarFactory(cf); return cf; }
public LibraryFactoryConfiguration createLibraries() { LibraryFactoryConfiguration mf = new LibraryFactoryConfiguration(); conf.setMethodFactory(mf); return mf; }
public NodeBinderFactoryConfiguration createBindings() { NodeBinderFactoryConfiguration nbf = new NodeBinderFactoryConfiguration(); conf.setBinderFactory(nbf); return nbf; }
public TypeFactoryConfiguration createTypes() { TypeFactoryConfiguration mf = new TypeFactoryConfiguration(); conf.setTypeFactory(mf); return mf; }
public LibraryFactoryConfiguration createLibraries() { LibraryFactoryConfiguration mf = new LibraryFactoryConfiguration(); conf.setMethodFactory(mf); return mf; }
public NodeBinderFactoryConfiguration createBindings() { NodeBinderFactoryConfiguration nbf = new NodeBinderFactoryConfiguration(); conf.setBinderFactory(nbf); return nbf; }