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();
}
}