protected void generate(final List<Resource> sourceResources) { final GeneratorContext context = new GeneratorContext(); context.setCancelIndicator(CancelIndicator.NullImpl); for (final Resource it : sourceResources) { { String _lastSegment = it.getURI().lastSegment(); String _plus = ("Starting generator for input: \'" + _lastSegment); String _plus_1 = (_plus + "\'"); StandaloneBuilder.LOG.info(_plus_1); this.registerCurrentSource(it.getURI()); final LanguageAccess access = this.languageAccess(it.getURI()); final JavaIoFileSystemAccess fileSystemAccess = this.getFileSystemAccess(access); boolean _isWriteStorageResources = this.isWriteStorageResources(); if (_isWriteStorageResources) { boolean _matched = false; if (it instanceof StorageAwareResource) { IResourceStorageFacade _resourceStorageFacade = ((StorageAwareResource)it).getResourceStorageFacade(); boolean _tripleNotEquals = (_resourceStorageFacade != null); if (_tripleNotEquals) { _matched=true; ((StorageAwareResource)it).getResourceStorageFacade().saveResource(((StorageAwareResource)it), fileSystemAccess); } } } access.getGenerator().generate(it, fileSystemAccess, context); } } }
public Class<? extends IResourceStorageFacade> bindIResourceStorageFacade() { return ResourceStorageFacade.class; }
public Class<? extends IResourceStorageFacade> bindIResourceStorageFacade() { return BatchLinkableResourceStorageFacade.class; }
@Pure public IResourceStorageFacade getResourceStorageFacade() { return this.resourceStorageFacade; }