org.reflections.spring
Class ReflectionsNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by org.reflections.spring.ReflectionsNamespaceHandler
All Implemented Interfaces:
org.springframework.beans.factory.xml.NamespaceHandler

public class ReflectionsNamespaceHandler
extends org.springframework.beans.factory.xml.NamespaceHandlerSupport

Reflections conponent-scan.

scan components using Reflections scan.

optionally collect saved resources using Reflections.collect() from META-INF/reflections/{basePackage}-reflections.xml

optionally save scanned resources using Reflections.save(String) to META-INF/reflections/{basePackage}-reflections.xml

       <beans
          ...
          xmlns:reflections="http://org.reflections"
          xsi:schemaLocation="...
             http://org.reflections http://org.reflections/reflections.xsd">
          ...
          <reflections:component-scan base-package="my.package.prefix"
              collect="false" save="false" parallel="true">
          </reflections:component-scan>
 


Nested Class Summary
static class ReflectionsNamespaceHandler.Parser
           
static class ReflectionsNamespaceHandler.Scanner
           
 
Constructor Summary
ReflectionsNamespaceHandler()
           
 
Method Summary
 void init()
           
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionsNamespaceHandler

public ReflectionsNamespaceHandler()
Method Detail

init

public void init()


Copyright © 2013. All Rights Reserved.