de.devsurf.injection.guice.reflections.example.autobind.names
Class ExampleApp

java.lang.Object
  extended by de.devsurf.injection.guice.reflections.example.autobind.names.ExampleApp

public class ExampleApp
extends Object

Example Application, which creates a new Injector with the help of the provided StartupModule. It passes the ReflectionsScanner class for the ClasspathScanner and the packages (de.devsurf) which should be scanned. The StartupModule binds these parameter, so we are able to create and inject our DynamicModule. This Module uses the ClasspathScanner to explore the Classpath and scans for Annotations. All recognized Classes annotated with GuiceModule are installed in the child injector and with AutoBind are automatically bound.

Author:
Daniel Manzke

Constructor Summary
ExampleApp()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleApp

public ExampleApp()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Copyright © 2010. All Rights Reserved.