private MultiResolutionAdapter(IssueResolution resolution) { if (!(resolution.getModificationContext() instanceof IssueModificationContext)) throw new IllegalArgumentException( "the resolution's modification context must be an IssueModificationContext"); this.issue = ((IssueModificationContext) resolution.getModificationContext()).getIssue(); this.resolution = resolution; }
@Inject public IssueResolutionAcceptor(IssueModificationContext.Factory modificationContextFactory) { this.modificationContextFactory = modificationContextFactory; }
/** * @since 2.0 */ protected IssueModificationContext.Factory getModificationContextFactory() { return modificationContextFactory; }