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 UIDboolean
Indicates whether the registry contains a fix registered for the given check UIDvoid
init()
void
registerChangeProcessor
(IFixChangeProcessor<?, ?> changeProcessor) Registers the quick fix change processorvoid
registerContextFactory
(IFixContextFactory<? extends IFixContext> contextFactory) Registers the quick fix context factoryvoid
registerFix
(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:IFixRepository
Provides the quick fix context factory- Specified by:
getContextFactory
in interfaceIFixRepository
- Parameters:
contextType
- the quick fix context, cannot benull
- Returns:
- context factory, never
null
-
getFixChangeProcessor
Description copied from interface:IFixRepository
Provides quick fix change processor- Specified by:
getFixChangeProcessor
in interfaceIFixRepository
- Parameters:
changeType
- change processor type, cannot benull
- Returns:
- change processor, never
null
-
getFixes
Description copied from interface:IFixRepository
Provides the quick fixes collection by check UID- Specified by:
getFixes
in 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:IFixRepository
Gets all registered fixes.- Specified by:
getFixes
in interfaceIFixRepository
- Returns:
- The collection of fixes. Never
null
.
-
hasFixes
Description copied from interface:IFixRepository
Indicates whether the registry contains a fix registered for the given check UID- Specified by:
hasFixes
in interfaceIFixRepository
- Parameters:
checkUid
- the check UID, cannot benull
- Returns:
true
if the quick fix exists,false
otherwise
-
init
-
registerChangeProcessor
Description copied from interface:IFixRepository
Registers the quick fix change processor- Specified by:
registerChangeProcessor
in interfaceIFixRepository
- Parameters:
changeProcessor
- the change processor, cannot benull
-
registerContextFactory
Description copied from interface:IFixRepository
Registers the quick fix context factory- Specified by:
registerContextFactory
in interfaceIFixRepository
- Parameters:
contextFactory
- the context factory, cannot benull
-
registerFix
Description copied from interface:IFixRepository
Manual addition of a pre-created fix to the repository- Specified by:
registerFix
in interfaceIFixRepository
- Parameters:
fix
- The fix to add, cannot benull
-