Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 1.63 KB

File metadata and controls

45 lines (39 loc) · 1.63 KB

Custom Definitions

fields

validators

Configuration

import com.merkle.oss.magnolia.definition.custom.configuration.CustomDefinitionBuildersConfiguration;
import org.springframework.context.annotation.*;

@Configuration
@Import({
		CustomDefinitionBuildersConfiguration.class
})
public class Configuration { }
<components>
    <id>main</id>
    <component>
        <!-- Optional defaults to com.merkle.oss.magnolia.definition.custom.configuration.DefaultLocaleProvider -->
        <type>com.merkle.oss.magnolia.definition.custom.configuration.LocaleProvider</type>
        <implementation>com.some.package.CustomLocaleProvider</implementation>
    </component>
    <component>
        <!-- Optional defaults to com.merkle.oss.magnolia.definition.custom.configuration.DefaultLinkUtil -->
        <type>com.merkle.oss.magnolia.definition.custom.configuration.LinkUtil</type>
        <implementation>com.some.package.CustomLinkUtil</implementation>
    </component>
</components>