Package com.avast.syringe.config

Examples of com.avast.syringe.config.ConfigProperty


                if (Modifier.isStatic(field.getModifiers())) {
                    continue;
                }

                ConfigProperty configParam = field.getAnnotation(ConfigProperty.class);
                if (configParam != null) {
                    InjectableProperty property = new ReflectionInjectableProperty(
                            field,
                            configParam.optional(),
                            configParam.name(),
                            configParam.habitat(),
                            configParam.delegate(),
                            converter
                    );
                    result.add(property);
                }
            }
View Full Code Here


        Array.set(array, i, element);
    }

    @Override
    public boolean hasTag(String tag) {
        ConfigProperty configPropertyAnnotation = field.getAnnotation(ConfigProperty.class);
        if (configPropertyAnnotation == null) {
            return field.getName().equals(tag);
        }

        for (String t : configPropertyAnnotation.tags()) {
            if (t.equals(tag)) {
                return true;
            }
        }
View Full Code Here

        Array.set(array, i, element);
    }

    @Override
    public boolean hasTag(String tag) {
        ConfigProperty configPropertyAnnotation = field.getAnnotation(ConfigProperty.class);
        if (configPropertyAnnotation == null) {
            return field.getName().equals(tag);
        }

        for (String t : configPropertyAnnotation.tags()) {
            if (t.equals(tag)) {
                return true;
            }
        }
View Full Code Here

                if (Modifier.isStatic(field.getModifiers())) {
                    continue;
                }

                ConfigProperty configParam = field.getAnnotation(ConfigProperty.class);
                if (configParam != null) {
                    InjectableProperty property = new ReflectionInjectableProperty(field, configParam.optional(),
                            configParam.habitat(), configParam.delegate(), converter);
                    result.add(property);
                }

            }
        }
View Full Code Here

                if (Modifier.isStatic(field.getModifiers())) {
                    continue;
                }

                ConfigProperty configParam = field.getAnnotation(ConfigProperty.class);
                if (configParam != null) {
                    InjectableProperty property = new ReflectionInjectableProperty(field, configParam.optional(),
                            configParam.habitat(), configParam.delegate(), converter);
                    result.add(property);
                }

            }
        }
View Full Code Here

TOP

Related Classes of com.avast.syringe.config.ConfigProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.