common/src/main/java/com/kakoo/foundation/common/resource/bundle/ResourceBundleManager.java
/**
     * Automatically detect annotated elements on the classpath.
     *
     * @see BundleAnnotationTypeVisitor
     * @see AnnotationDetector
     */
Automatically detect annotated elements on the classpath.
Automatically detect annotated elements on the classpath .
private static void autoDetectAnnotated()
    {
        try
        {
            final BundleAnnotationTypeVisitor visitor = new BundleAnnotationTypeVisitor();
            final AnnotationDetector detector = new AnnotationDetector(visitor);
            detector.detect();
            visitor.delegateRegistration();
        }
        catch (Exception e)
        {
            ResourceBundleManager.status = StatusType.ERROR;
            throw new ResourceBundleException(e.getMessage(), e);
        }
    }
private static void autoDetectAnnotated ( ) { try { final BundleAnnotationTypeVisitor visitor = new BundleAnnotationTypeVisitor ( ) ; final AnnotationDetector detector = new AnnotationDetector ( visitor ) ; detector . detect ( ) ; visitor . delegateRegistration ( ) ; } catch ( Exception e ) { ResourceBundleManager . status = StatusType . ERROR ; throw new ResourceBundleException ( e . getMessage ( ) , e ) ; } }
Automatically detect annotated elements on the classpath.
Automatically detect annotated elements on the classpath .