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

de.tsl2.nano.h5.annotation.QueryAnnotationFactory Maven / Gradle / Ivy

package de.tsl2.nano.h5.annotation;

import java.util.Collection;

import de.tsl2.nano.annotation.extension.AnnotationFactory;
import de.tsl2.nano.bean.def.BeanDefinition;
import de.tsl2.nano.h5.collector.QueryResult;

@SuppressWarnings({ "rawtypes" })
public class QueryAnnotationFactory implements AnnotationFactory {

    @Override
    public void build(BeanDefinition instance, Query a) {
        QueryResult, Object> qr = new QueryResult<>(a.name());
        qr.getPresentable().setIcon(a.icon());
        qr.saveDefinition();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy