Package com.dragome.commons

Examples of com.dragome.commons.DefaultDragomeConfigurator


    }
  }

  private static DragomeConfigurator getConfigurator()
  {
    DragomeConfigurator configurator= new DefaultDragomeConfigurator();
    List<AnnotationEntry> annotationEntries= AnnotationsHelper.getAnnotationsByType(DragomeConfiguratorImplementor.class).getEntries();
    for (AnnotationEntry annotationEntry : annotationEntries)
    {
      if (!annotationEntry.getType().equals(DefaultDragomeConfigurator.class))
        configurator= ServiceLocator.getInstance().getReflectionService().createClassInstance((Class<? extends DragomeConfigurator>) annotationEntry.getType());
View Full Code Here


    }
  }

  private static DragomeConfigurator getConfigurator()
  {
    DragomeConfigurator configurator= new DefaultDragomeConfigurator();
    List<AnnotationEntry> annotationEntries= AnnotationsHelper.getAnnotationsByType(DragomeConfiguratorImplementor.class).getEntries();
    for (AnnotationEntry annotationEntry : annotationEntries)
    {
      if (!annotationEntry.getType().equals(DefaultDragomeConfigurator.class))
        configurator= ServiceLocator.getInstance().getReflectionService().createClassInstance((Class<? extends DragomeConfigurator>) annotationEntry.getType());
View Full Code Here

      if (foundConfigurator == null)
      {
        Set<Class<?>> typesAnnotatedWith= reflections.getTypesAnnotatedWith(DragomeConfiguratorImplementor.class);
        if (typesAnnotatedWith.isEmpty())
          foundConfigurator= new DefaultDragomeConfigurator();
        else
          foundConfigurator= (DragomeConfigurator) typesAnnotatedWith.iterator().next().newInstance();
      }

      return foundConfigurator;
View Full Code Here

TOP

Related Classes of com.dragome.commons.DefaultDragomeConfigurator

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.