Class FixRepository
java.lang.Object
com.e1c.g5.v8.dt.internal.check.qfix.FixRepository
- All Implemented Interfaces:
IFixRepository
@LifecycleService(name="FIX_REPOSITORY")
public final class FixRepository
extends Object
implements IFixRepository
The EDT implementation of the
IFixRepository service-
Field Summary
Fields inherited from interface com.e1c.g5.v8.dt.check.qfix.IFixRepository
SERVICE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionFixRepository(IFixProvider fixProvider, ICheckLogAccessor logAccessor) Constructs and instance of a fix repository -
Method Summary
Modifier and TypeMethodDescriptionIFixContextFactory<? extends IFixContext>getContextFactory(Class<? extends IFixContext> contextType) Provides the quick fix context factoryIFixChangeProcessor<?,?> getFixChangeProcessor(Class<?> changeType) Provides quick fix change processorMap<CheckUid,Collection<IFix<? extends IFixContext>>> getFixes()Gets all registered fixes.Collection<IFix<? extends IFixContext>>Provides the quick fixes collection by check UIDbooleanIndicates whether the registry contains a fix registered for the given check UIDvoidinit()voidregisterChangeProcessor(IFixChangeProcessor<?, ?> changeProcessor) Registers the quick fix change processorvoidregisterContextFactory(IFixContextFactory<? extends IFixContext> contextFactory) Registers the quick fix context factoryvoidregisterFix(IFix<? extends IFixContext> fix) Manual addition of a pre-created fix to the repository
-
Constructor Details
-
FixRepository
Constructs and instance of a fix repository
-
-
Method Details
-
getContextFactory
public IFixContextFactory<? extends IFixContext> getContextFactory(Class<? extends IFixContext> contextType) Description copied from interface:IFixRepositoryProvides the quick fix context factory- Specified by:
getContextFactoryin interfaceIFixRepository- Parameters:
contextType- the quick fix context, cannot benull- Returns:
- context factory, never
null
-
getFixChangeProcessor
Description copied from interface:IFixRepositoryProvides quick fix change processor- Specified by:
getFixChangeProcessorin interfaceIFixRepository- Parameters:
changeType- change processor type, cannot benull- Returns:
- change processor, never
null
-
getFixes
Description copied from interface:IFixRepositoryProvides the quick fixes collection by check UID- Specified by:
getFixesin interfaceIFixRepository- Parameters:
checkUid- check UID, cannot benull- Returns:
- the collection of quicke fixes registered for the given check UID, never
null, can be empty
-
getFixes
Description copied from interface:IFixRepositoryGets all registered fixes.- Specified by:
getFixesin interfaceIFixRepository- Returns:
- The collection of fixes. Never
null.
-
hasFixes
Description copied from interface:IFixRepositoryIndicates whether the registry contains a fix registered for the given check UID- Specified by:
hasFixesin interfaceIFixRepository- Parameters:
checkUid- the check UID, cannot benull- Returns:
trueif the quick fix exists,falseotherwise
-
init
-
registerChangeProcessor
Description copied from interface:IFixRepositoryRegisters the quick fix change processor- Specified by:
registerChangeProcessorin interfaceIFixRepository- Parameters:
changeProcessor- the change processor, cannot benull
-
registerContextFactory
Description copied from interface:IFixRepositoryRegisters the quick fix context factory- Specified by:
registerContextFactoryin interfaceIFixRepository- Parameters:
contextFactory- the context factory, cannot benull
-
registerFix
Description copied from interface:IFixRepositoryManual addition of a pre-created fix to the repository- Specified by:
registerFixin interfaceIFixRepository- Parameters:
fix- The fix to add, cannot benull
-