All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.technologybrewery.fermenter.mda.metamodel.AbstractModelInstanceRepository Maven / Gradle / Ivy

The newest version!
package org.technologybrewery.fermenter.mda.metamodel;

/**
 * Provides common methods needed for exposing model instances.
 */
public abstract class AbstractModelInstanceRepository implements ModelInstanceRepository {

    protected ModelRepositoryConfiguration config;

    /**
     * Instantiates this instance with any applicable properties.
     * 
     * @param properties
     *            any applicable properties
     */
    public AbstractModelInstanceRepository(ModelRepositoryConfiguration config) {
        this.config = config;

    }

    /**
     * Returns the base package under which this repository was instantiated.
     * 
     * @return base package name
     */
    public String getBasePackage() {
        return config.getBasePackage();

    }

    /**
     * Returns the artifact id.
     * 
     * @return artifact id
     */
    public String getArtifactId() {
        return config.getArtifactId();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy