Class FilePerRootDataSourceFactory

    • Constructor Detail

      • FilePerRootDataSourceFactory

        public FilePerRootDataSourceFactory()
    • Method Detail

      • create

        @NotNull
        public DataSource create​(@NotNull
                                 SModelName modelName,
                                 @NotNull
                                 SourceRoot sourceRoot)
        Description copied from interface: DataSourceFactoryFromName
        This is invoked in order to create a new model from scratch given only its name. For instance it might be useful if we want to put a model accordingly to it's fq name or if we want to provide some specific extension of the new model file (if we are based on file system).
        Specified by:
        create in interface DataSourceFactoryFromName
        Parameters:
        modelName - new model name
        sourceRoot - source root which will host the newly created model
        Returns:
        new data source which points to location generated by this method from the model name