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

org.openfact.component.SubComponentFactory Maven / Gradle / Ivy

package org.openfact.component;

import org.openfact.models.OrganizationModel;
import org.openfact.provider.ProviderConfigProperty;

import java.util.List;
import java.util.Map;

/**
 * Useful when you want to describe config properties that are effected by the parent ComponentModel
 */
public interface SubComponentFactory extends ComponentFactory {

    default List getConfigProperties(OrganizationModel organization, ComponentModel parent) {
        return getConfigProperties();
    }

    /**
     * This is metadata about this component type.  Its really configuration information about the component type and not
     * an individual instance
     *
     * @return
     */
    default Map getTypeMetadata(OrganizationModel organization, ComponentModel parent) {
        return getTypeMetadata();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy