/** * The second "default constructor". * * @param configuration * The configuration for this component. * @param projectContext * The project context for this component. The component will be registered. */ public AbstractRepository(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); // Register the repository if (projectContext instanceof AnalysisController) { ((AnalysisController) projectContext).registerRepository(this); } else { throw new InvalidProjectContextException("Invalid analysis controller in constructor"); } }
/** * The second "default constructor". * * @param configuration * The configuration for this component. * @param projectContext * The project context for this component. The component will be registered. */ public AbstractRepository(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); // Register the repository if (projectContext instanceof AnalysisController) { ((AnalysisController) projectContext).registerRepository(this); } else { throw new InvalidProjectContextException("Invalid analysis controller in constructor"); } }