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

com.flextrade.jfixture.jodatime.customisation.JodaTimeCustomisation Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
package com.flextrade.jfixture.jodatime.customisation;

import com.flextrade.jfixture.JFixture;
import com.flextrade.jfixture.behaviours.autoproperty.AutoPropertyBehaviour;
import com.flextrade.jfixture.customisation.Customisation;

public class JodaTimeCustomisation implements Customisation {
    @Override
    public void customise(JFixture fixture) {

        AutoPropertyBehaviour autoPropertyBehaviour = fixture.behaviours().find(AutoPropertyBehaviour.class);
        if (autoPropertyBehaviour != null) {
            autoPropertyBehaviour.specifications().add(new JodaTimeSpecification());
        }

        fixture.addBuilderToStartOfPipeline(new ReadableInstantRelay());
        fixture.addBuilderToStartOfPipeline(new ReadableIntervalRelay());
        fixture.addBuilderToStartOfPipeline(new ReadableDurationRelay());
        fixture.addBuilderToStartOfPipeline(new ReadablePartialRelay());
        fixture.addBuilderToStartOfPipeline(new ReadablePeriodRelay());

        fixture.addBuilderToStartOfPipeline(new PartialRelay());
        fixture.addBuilderToStartOfPipeline(new BasePeriodRelay());
        fixture.addBuilderToStartOfPipeline(new BaseSingleFieldPeriodRelay());
        fixture.addBuilderToStartOfPipeline(new BasePartialRelay());
        fixture.addBuilderToStartOfPipeline(new BaseLocalRelay());
        fixture.addBuilderToStartOfPipeline(new BaseDurationRelay());
        fixture.addBuilderToStartOfPipeline(new BaseIntervalRelay());
        fixture.addBuilderToStartOfPipeline(new BaseDateTimeRelay());

        fixture.addBuilderToStartOfPipeline(new DateTimeZoneBuilder());
        fixture.addBuilderToStartOfPipeline(new ChronologyBuilder());
        fixture.addBuilderToStartOfPipeline(new ChronologyBuilder());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy