Examples of AnnotationProvider


Examples of com.codingcrayons.aspectfaces.annotation.AnnotationProvider

        try {
          StringBuilder builder = new StringBuilder();

          AnnotationDescriptor descriptor = fieldDescriptorClass.newInstance();
          AnnotationProvider provider = new AnnotationProvider("Dummy");

          String currentPackageName = descriptor.getAnnotationName().substring(0,
            descriptor.getAnnotationName().lastIndexOf("."));
          if (!packageName.equals(currentPackageName)) {
            packageName = currentPackageName;
View Full Code Here

Examples of com.intellij.openapi.vcs.annotate.AnnotationProvider

    if (vcs == null)
    {
      return;
    }

    final AnnotationProvider annotationProvider = vcs.getAnnotationProvider();
    if (annotationProvider == null)
    {
      return;
    }

    final Ref<FileAnnotation> fileAnnotationRef = new Ref<FileAnnotation>();
    final Ref<VcsException> exceptionRef = new Ref<VcsException>();

    final BackgroundableActionEnabledHandler handler =
      ((ProjectLevelVcsManagerImpl) plVcsManager).getBackgroundableActionHandler(
        VcsBackgroundableActions.ANNOTATE);
    handler.register(file.getPath());

    ProgressManager.getInstance()
      .run(new Task.Backgroundable(project, VcsBundle.message("retrieving.annotations"), true,
        BackgroundFromStartOption.getInstance())
      {
        public void run(@NotNull ProgressIndicator indicator)
        {
          try
          {
            fileAnnotationRef.set(annotationProvider.annotate(file));
          }
          catch (VcsException e)
          {
            exceptionRef.set(e);
          }
View Full Code Here

Examples of com.intellij.openapi.vcs.annotate.AnnotationProvider

    AbstractVcs vcs = plVcsManager.getVcsFor(file);
    if (vcs == null)
    {
      return;
    }
    final AnnotationProvider annotationProvider = vcs.getAnnotationProvider();

    final Ref<FileAnnotation> fileAnnotationRef = new Ref<FileAnnotation>();
    final Ref<VcsException> exceptionRef = new Ref<VcsException>();

    final BackgroundableActionEnabledHandler handler =
      ((ProjectLevelVcsManagerImpl) plVcsManager).getBackgroundableActionHandler(
        VcsBackgroundableActions.ANNOTATE);
    handler.register(file.getPath());

    ProgressManager.getInstance()
      .run(new Task.Backgroundable(project, VcsBundle.message("retrieving.annotations"), true,
        BackgroundFromStartOption.getInstance())
      {
        public void run(@NotNull ProgressIndicator indicator)
        {
          try
          {
            fileAnnotationRef.set(annotationProvider.annotate(file));
          }
          catch (VcsException e)
          {
            exceptionRef.set(e);
          }
View Full Code Here

Examples of com.sun.faces.spi.AnnotationProvider

            if (t != null) {
                t.startTiming();
            }

            //AnnotationScanner scanner = new AnnotationScanner(sc);
            AnnotationProvider provider = AnnotationProviderFactory.createAnnotationProvider(sc);
            Map<Class<? extends Annotation>,Set<Class<?>>> annotatedClasses =
                  provider.getAnnotatedClasses(urls);

            if (t != null) {
                t.stopTiming();
                t.logResult("Configuration annotation scan complete.");
            }
View Full Code Here

Examples of com.thoughtworks.xstream.annotations.AnnotationProvider

    protected void setUp() throws Exception {
        super.setUp();
        xstream = new XStream();
        xstream.registerConverter(
            new AnnotationReflectionConverter(xstream.getMapper(), xstream
                .getReflectionProvider(), new AnnotationProvider()), XStream.PRIORITY_VERY_LOW);
        xstream.alias("annotatedTask", FieldConverterTest.TaskWithAnnotations.class);
    }
View Full Code Here

Examples of hudson.plugins.analysis.util.model.AnnotationProvider

    /**
     * Verifies the different messages if the number of items are 0, 1, and 2.
     */
    @Test
    public void verifyNumberOfItems() {
        AnnotationProvider provider = mock(AnnotationProvider.class);
        DryHealthDescriptor healthDescriptor = new DryHealthDescriptor(NullHealthDescriptor.NULL_HEALTH_DESCRIPTOR);

        Localizable description = healthDescriptor.createDescription(provider);
        assertEquals(WRONG_DESCRIPTION, Messages.DRY_ResultAction_HealthReportNoItem(), description.toString());

        when(provider.getNumberOfAnnotations()).thenReturn(1);
        description = healthDescriptor.createDescription(provider);
        assertEquals(WRONG_DESCRIPTION, Messages.DRY_ResultAction_HealthReportSingleItem(), description.toString());

        when(provider.getNumberOfAnnotations()).thenReturn(2);
        description = healthDescriptor.createDescription(provider);
        assertEquals(WRONG_DESCRIPTION, Messages.DRY_ResultAction_HealthReportMultipleItem(2), description.toString());
    }
View Full Code Here

Examples of org.apache.myfaces.spi.AnnotationProvider

    public FacesConfig createFacesConfig(ExternalContext externalcontext, boolean metadataComplete)
    {
        if (!metadataComplete)
        {
            AnnotationProvider provider = AnnotationProviderFactory.getAnnotationProviderFactory(externalcontext).
                    getAnnotationProvider(externalcontext);
            Map<Class<? extends Annotation>, Set<Class<?>>> map = provider.getAnnotatedClasses(externalcontext);
            return createFacesConfig(map);
        }
        return null;
    }
View Full Code Here

Examples of org.apache.myfaces.spi.AnnotationProvider

        }
       
        //2. Scan for annotations on classpath
        try
        {
            AnnotationProvider provider
                    = AnnotationProviderFactory.getAnnotationProviderFactory(ctx).getAnnotationProvider(ctx);
            classes = getAnnotatedMetaInfClasses(ctx, provider.getBaseUrls());
        }
        catch (IOException e)
        {
            throw new FacesException(e);
        }
View Full Code Here

Examples of org.apache.myfaces.spi.AnnotationProvider

    public FacesConfig createFacesConfig(ExternalContext _externalContext, boolean metadataComplete)
    {
        if (!metadataComplete)
        {
            AnnotationProvider provider = AnnotationProviderFactory.getAnnotationProviderFactory(_externalContext).getAnnotationProvider(_externalContext);
            Map<Class<? extends Annotation>,Set<Class<?>>> map = provider.getAnnotatedClasses(_externalContext);
            return createFacesConfig(map);
        }
        return null;
    }
View Full Code Here

Examples of org.apache.myfaces.spi.AnnotationProvider

    public FacesConfig createFacesConfig(ExternalContext _externalContext, boolean metadataComplete)
    {
        if (!metadataComplete)
        {
            AnnotationProvider provider = AnnotationProviderFactory.getAnnotationProviderFactory(_externalContext).getAnnotationProvider(_externalContext);
            Map<Class<? extends Annotation>,Set<Class<?>>> map = provider.getAnnotatedClasses(_externalContext);
            return createFacesConfig(map);
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.