de.devsurf.injection.guice.reflections.example.startupmodule
Class ExampleApp
java.lang.Object
de.devsurf.injection.guice.reflections.example.startupmodule.ExampleApp
public class ExampleApp
- extends Object
Example Application, which creates a new Injector with the help of our own
ExampleStartupModule. 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExampleApp
public ExampleApp()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 2010. All Rights Reserved.