* limitations under the License.
* ============LICENSE_END=========================================================
*/
+
package org.onap.aai.introspection;
import java.util.Map;
public class LoaderFactory {
- @Autowired
- public Map<SchemaVersion, MoxyLoader> moxyLoaderInstance;
+ @Autowired
+ public Map<SchemaVersion, MoxyLoader> moxyLoaderInstance;
- public LoaderFactory(Map<SchemaVersion, MoxyLoader> moxyLoaderInstance) {
- this.moxyLoaderInstance = moxyLoaderInstance;
- }
+ public LoaderFactory(Map<SchemaVersion, MoxyLoader> moxyLoaderInstance) {
+ this.moxyLoaderInstance = moxyLoaderInstance;
+ }
- /**
- * Creates a new Loader object.
- *
- * @param type
- * the type
- * @param version
- * the version
- * @param llBuilder
- * the ll builder
- * @return the loader
- */
- public Loader createLoaderForVersion(ModelType type, SchemaVersion version) {
+ /**
+ * Creates a new Loader object.
+ *
+ * @param type
+ * the type
+ * @param version
+ * the version
+ * @param llBuilder
+ * the ll builder
+ * @return the loader
+ */
+ public Loader createLoaderForVersion(ModelType type, SchemaVersion version) {
- if (type.equals(ModelType.MOXY)) {
- return getMoxyLoaderInstance().get(version);
- }
+ if (type.equals(ModelType.MOXY)) {
+ return getMoxyLoaderInstance().get(version);
+ }
- return null;
+ return null;
- }
+ }
- public Loader getLoaderStrategy(ModelType type, SchemaVersion version) {
+ public Loader getLoaderStrategy(ModelType type, SchemaVersion version) {
- if (type.equals(ModelType.MOXY)) {
- return getMoxyLoaderInstance().get(version);
- }
- return null;
+ if (type.equals(ModelType.MOXY)) {
+ return getMoxyLoaderInstance().get(version);
+ }
+ return null;
- }
+ }
- public Map<SchemaVersion, MoxyLoader> getMoxyLoaderInstance() {
- return moxyLoaderInstance;
- }
+ public Map<SchemaVersion, MoxyLoader> getMoxyLoaderInstance() {
+ return moxyLoaderInstance;
+ }
- public void setMoxyLoaderInstance(Map<SchemaVersion, MoxyLoader> moxyLoaderInstance) {
- this.moxyLoaderInstance = moxyLoaderInstance;
- }
+ public void setMoxyLoaderInstance(Map<SchemaVersion, MoxyLoader> moxyLoaderInstance) {
+ this.moxyLoaderInstance = moxyLoaderInstance;
+ }
}