rename ProjectStoreClassProvider to ProjectStoreFactory

GitOrigin-RevId: 7b4e1e5b4f8d70cd792460b45ba2669818a87d7b
This commit is contained in:
develar
2019-04-29 09:22:41 +02:00
committed by intellij-monorepo-bot
parent dac10369e9
commit fddfc81cc0
6 changed files with 10 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ex.ProjectEx
import com.intellij.openapi.project.ex.ProjectNameProvider
import com.intellij.openapi.project.impl.ProjectImpl
import com.intellij.openapi.project.impl.ProjectStoreClassProvider
import com.intellij.openapi.project.impl.ProjectStoreFactory
import com.intellij.openapi.vfs.LocalFileSystem
import com.intellij.openapi.vfs.ReadonlyStatusHandler
import com.intellij.openapi.vfs.VirtualFile
@@ -166,13 +166,13 @@ private class ProjectWithModulesStoreImpl(project: Project) : ProjectStoreImpl(p
}
}
internal class PlatformLangProjectStoreClassProvider : ProjectStoreClassProvider {
internal class PlatformLangProjectStoreFactory : ProjectStoreFactory {
override fun createStore(project: Project): IComponentStore {
return if (project.isDefault) DefaultProjectStoreImpl(project) else ProjectWithModulesStoreImpl(project)
}
}
internal class PlatformProjectStoreClassProvider : ProjectStoreClassProvider {
internal class PlatformProjectStoreFactory : ProjectStoreFactory {
override fun createStore(project: Project): IComponentStore {
return if (project.isDefault) DefaultProjectStoreImpl(project) else ProjectStoreImpl(project)
}

View File

@@ -64,7 +64,7 @@ public class ProjectImpl extends PlatformComponentManagerImpl implements Project
private final AtomicNotNullLazyValue<IComponentStore> myComponentStore = AtomicNotNullLazyValue.createValue(() -> {
//noinspection CodeBlock2Expr
return ServiceManager.getService(ProjectStoreClassProvider.class).createStore(this);
return ServiceManager.getService(ProjectStoreFactory.class).createStore(this);
});
/**

View File

@@ -5,7 +5,7 @@ import com.intellij.openapi.components.impl.stores.IComponentStore;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
public interface ProjectStoreClassProvider {
public interface ProjectStoreFactory {
@NotNull
IComponentStore createStore(@NotNull Project project);
}

View File

@@ -1,7 +1,7 @@
<idea-plugin>
<extensions defaultExtensionNs="com.intellij">
<applicationService serviceInterface="com.intellij.openapi.project.impl.ProjectStoreClassProvider"
serviceImplementation="com.intellij.configurationStore.PlatformLangProjectStoreClassProvider"
<applicationService serviceInterface="com.intellij.openapi.project.impl.ProjectStoreFactory"
serviceImplementation="com.intellij.configurationStore.PlatformLangProjectStoreFactory"
overrides="true"/>
<appStarter implementation="com.intellij.codeInspection.InspectionMain"/>

View File

@@ -5,7 +5,7 @@
<!--suppress PluginXmlValidity -->
<extensionPoint name="projectService" beanClass="com.intellij.openapi.components.ServiceDescriptor"/>
<extensionPoint name="projectStoreClassProvider" interface="com.intellij.openapi.project.impl.ProjectStoreClassProvider"/>
<extensionPoint name="projectStoreClassProvider" interface="com.intellij.openapi.project.impl.ProjectStoreFactory"/>
<extensionPoint name="appStarter"
interface="com.intellij.openapi.application.ApplicationStarter"/>

View File

@@ -24,8 +24,8 @@
<virtualFileSystem implementationClass="com.intellij.openapi.vfs.impl.jar.JarFileSystemImpl" key="jar" physical="true"/>
<virtualFileSystem implementationClass="com.intellij.openapi.vfs.ex.temp.TempFileSystem" key="temp" physical="true"/>
<applicationService serviceInterface="com.intellij.openapi.project.impl.ProjectStoreClassProvider"
serviceImplementation="com.intellij.configurationStore.PlatformProjectStoreClassProvider"/>
<applicationService serviceInterface="com.intellij.openapi.project.impl.ProjectStoreFactory"
serviceImplementation="com.intellij.configurationStore.PlatformProjectStoreFactory"/>
<applicationService serviceInterface="com.intellij.openapi.components.impl.stores.IComponentStore"
serviceImplementation="com.intellij.configurationStore.ApplicationStoreImpl"/>