Skip to the content.

4.0.11

Breaking changes

Migration

-> FactoryTemplateId

old

    JettyFactoryTreeBuilder builder = new JettyFactoryTreeBuilder((jetty, ctx)->{
        jetty.withHost("localhost").withPort(8015).withResource(ctx.get(SomeResourceFactory.class))
                    .withJaxrsComponent(ctx.get(SomeJaxrsComponentFactory.class));
    });

new

    JettyFactoryTreeBuilder builder = new JettyFactoryTreeBuilder((jetty, ctx)->{
        jetty.withHost("localhost").withPort(8015).withResource(new FactoryTemplateId<>(SomeResourceFactory.class))
                    .withJaxrsComponent(new FactoryTemplateId<>(SomeJaxrsComponentFactory.class));
    });

-> AttributelessFactory

old

    JettyFactoryTreeBuilder builder = new JettyFactoryTreeBuilder((jetty, ctx)->{
        jetty.withHost("localhost").withPort(8015).withResource(AttributelessFactory.create(SomeResource.class))
                    .withJaxrsComponent(AttributelessFactory.create(SomeJaxrsComponent.class));
    });

new

    JettyFactoryTreeBuilder builder = new JettyFactoryTreeBuilder((jetty, ctx)->{
        jetty.withHost("localhost").withPort(8015).withResourceLiveObjectClass(SomeResource.class)
                    .withJaxrsComponentLiveObjectClass(SomeJaxrsComponent.class);
    });

See JettyServerBuilderWithFactoryTemplateIdTest.java for examples

4.0.10

4.0.9

4.0.8

4.0.7

4.0.6

4.0.5

4.0.4

4.0.3

4.0.2

4.0.1

4.0.0

3.2.2

3.2.1

3.2.0

3.1.6

3.1.5

Features

3.0.16

Bug Fixes

3.0.15

Features

BREAKING CHANGES

It can be fixed by patching the factoryMetadata: change referenceClass of the ssl attribute for className “io.github.factoryfx.jetty.HttpServerConnectorFactory” to “io.github.factoryfx.factory.FactoryBase”.

The following DataStorage#patchAll does it:

dataStorage.patchAll((root, metaData, objectMapper) -> {
    ArrayNode dataListJsonNode = (ArrayNode) metaData.get("dataStorageMetadataDictionary").get("dataList");
    for (JsonNode childNode : dataListJsonNode) {
        String className = childNode.get("className").asText();
        if ("io.github.factoryfx.jetty.HttpServerConnectorFactory".equals(className)) {
            ArrayNode attributes = (ArrayNode) childNode.get("attributes");
            for (JsonNode attributeMetadata : attributes) {
                final String variableName = Optional.ofNullable(attributeMetadata.get("variableName")).map(JsonNode::asText).orElse(null);
                if("ssl".equals(variableName)) {
                    ((ObjectNode) attributeMetadata).set("referenceClass", new TextNode(FactoryBase.class.getName()));
                }
            }
        }
    }
});

3.0.4

BREAKING CHANGES

3.0.0

Features

BREAKING CHANGES

2.2.24

public static class FactoryCatalogItem extends SimpleFactoryBase  {
    public FactoryCatalogItem {
        this.config().markAsCatalogItem();
    }
}

2.2.16

BREAKING CHANGES

2.2.10

Features

BREAKING CHANGES

2.2.9

BREAKING CHANGES

2.2.8

BREAKING CHANGES

2.2.1

BREAKING CHANGES

2.2.0

Features

BREAKING CHANGES

2.1.0

Features

BREAKING CHANGES

2.0.6

BREAKING CHANGES

2.0.5

Features

BREAKING CHANGES

2.0.0

Bug Fixes

Features

BREAKING CHANGES

1.9.0

Bug Fixes

Features

BREAKING CHANGES