Class ProfileDependenciesModule.TestableProfileProvider

  • All Implemented Interfaces:
    IProfileProvider
    Enclosing class:
    ProfileDependenciesModule

    public static class ProfileDependenciesModule.TestableProfileProvider
    extends com._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
    Testable profile provider.
    • Constructor Detail

      • TestableProfileProvider

        public TestableProfileProvider()
    • Method Detail

      • getOrCreateProfile

        public ProfileDependenciesModule.TestableProfile getOrCreateProfile​(Path profilePath,
                                                                            boolean createIfAbsent)
                                                                     throws IOException
        Description copied from class: com._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
        Get or create profile for the given profile path. Profile will be synced after creation.
        Overrides:
        getOrCreateProfile in class com._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
        Parameters:
        profilePath - the profile path to create profile with, cannot be null
        createIfAbsent - whether need to create profile if it does not exist
        Returns:
        loaded or created profile or null, if profile does not exist and createIfAbsent is false
        Throws:
        IOException
      • createProfile

        public ProfileDependenciesModule.TestableProfile createProfile​(Path profilePath)
        Description copied from class: com._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
        Create profile for the given profile path.
        Overrides:
        createProfile in class com._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
        Parameters:
        profilePath - the profile path to create profile with, cannot be null
        Returns:
        loaded or created profile, never null