Package io.jmix.masquerade.config
Interface ComponentConfig
- All Known Implementing Classes:
DefaultComponentConfig
public interface ComponentConfig
SPI interface for
JComponents
factory. Implement this interface in your project and create
META-INF/services/io.jmix.masquerade.config.ComponentConfig
in your classpath with FQN
of your implementation.
For example:
public class CustomComponentConfig implements ComponentConfig {
@Override
public Map<Class<?>, Function<By, ?>> getComponents() {
return Map.of(Untyped.class, Untyped::new);
}
}</code></pre>
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getComponents
- Returns:
Map
of components class to the components constructor with theBy
parameter
-