dependencymanager/org.apache.felix.dependencymanager/src/org/apache/felix/dm/impl/Configurable.java [643:686]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        static public boolean isSingleElementAnnotation(final Class<?> clazz)
        {
            boolean result = false;
            if ( clazz.isAnnotation() )
            {
                result = true;
                boolean hasValue = false;
                for ( final Method method: clazz.getMethods() )
                {
                    // filter out methods from Annotation
                    boolean isFromAnnotation = false;
                    for(final Method objMethod : ANNOTATION_METHODS)
                    {
                        if ( objMethod.getName().equals(method.getName())
                          && Arrays.equals(objMethod.getParameterTypes(), method.getParameterTypes()) )
                        {
                            isFromAnnotation = true;
                            break;
                        }
                    }
                    if ( isFromAnnotation )
                    {
                        continue;
                    }
                    if ( VALUE_METHOD.equals(method.getName()) )
                    {
                        hasValue = true;
                        continue;
                    }
                    if ( method.getDefaultValue() == null )
                    {
                        result = false;
                        break;
                    }

                }
                if ( result )
                {
                    result = hasValue;
                }

            }
            return result;
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



scr/src/main/java/org/apache/felix/scr/impl/inject/internal/Annotations.java [69:112]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    static public boolean isSingleElementAnnotation(final Class<?> clazz)
    {
        boolean result = false;
        if ( clazz.isAnnotation() )
        {
            result = true;
            boolean hasValue = false;
            for ( final Method method: clazz.getMethods() )
            {
                // filter out methods from Annotation
                boolean isFromAnnotation = false;
                for(final Method objMethod : ANNOTATION_METHODS)
                {
                    if ( objMethod.getName().equals(method.getName())
                      && Arrays.equals(objMethod.getParameterTypes(), method.getParameterTypes()) )
                    {
                        isFromAnnotation = true;
                        break;
                    }
                }
                if ( isFromAnnotation )
                {
                    continue;
                }
                if ( VALUE_METHOD.equals(method.getName()) )
                {
                    hasValue = true;
                    continue;
                }
                if ( method.getDefaultValue() == null )
                {
                    result = false;
                    break;
                }

            }
            if ( result )
            {
                result = hasValue;
            }

        }
        return result;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



