Class ProfileDependenciesModule.TestableProfileProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
-
- com._1c.g5.v8.dt.platform.services.core.profiles.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 Summary
Constructors Constructor Description TestableProfileProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileDependenciesModule.TestableProfile
createProfile(Path profilePath)
Create profile for the given profile path.ProfileDependenciesModule.TestableProfile
getOrCreateProfile(Path profilePath, boolean createIfAbsent)
Get or create profile for the given profile path.
-
-
-
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 classcom._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
- Parameters:
profilePath
- the profile path to create profile with, cannot benull
createIfAbsent
- whether need to create profile if it does not exist- Returns:
- loaded or created profile or
null
, if profile does not exist andcreateIfAbsent
isfalse
- 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 classcom._1c.g5.v8.dt.internal.platform.services.core.profiles.ProfileProvider
- Parameters:
profilePath
- the profile path to create profile with, cannot benull
- Returns:
- loaded or created profile, never
null
-
-