/*
 * Copyright 2011-2015 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.datastore.server;


/**
 * Repository initializer representation.
 *
 */
public interface IRepositoryInitializer {

	/**
	 * Performs any arbitrary domain specific operation in the given repository.
	 * @param repository the repository.
	 */
	void initialize();
	
}
@@ -21,9 +21,9 @@
 -201
-5
+7
  B2i
@@ -680,175 +680,779 @@
 r;%0A%0A
-%0A/**%0A * Repository initializer representation.%0A *%0A */%0Apublic interface IRepositoryInitializer %7B%0A%0A%09/**%0A%09 * Performs any arbitrary domain specific operation in the given
+import com.b2international.snowowl.datastore.cdo.ICDORepository;%0A%0A/**%0A * Ensures that a particular terminology repository is in the expected state at the beginning of its lifecycle.%0A * %3Cp%3E%0A * Implementations are typically performing the following operations:%0A * %3Cul%3E%0A * %3Cli%3ERegister the repository's primary code system;%0A * %3Cli%3EAdd CDO resources that hold terminology content and any auxiliary data;%0A * %3Cli%3EAdd DB indexes to tables, if required;%0A * %3Cli%3EInject supporting terminology content, if required.%0A * %3C/ul%3E%0A * %3Cp%3E%0A * Operations are free to check on each startup if they have to be executed, or be %0A * bound to first-time initialization of the repository. %0A */%0Apublic interface IRepositoryInitializer %7B%0A%0A%09/**%0A%09 * Executes initialization checks for the corresponding
  rep
@@ -1460,16 +1460,21 @@
 sitory.%0A
+%09 * %0A
 %09 * @par
@@ -1487,16 +1487,17 @@
 ository 
+ 
 the repo
@@ -1506,34 +1506,98 @@
 tory
-.%0A%09 */%0A%09void initialize();%0A%09%0A%7D
+ to initialize (may not be %7B@code null%7D) %0A%09 */%0A%09void initialize(ICDORepository repository);%0A%7D%0A

Change method signature on IRepositoryInitializer, add javadoc