Java Doc for BinderImpl.java in  » Testing » Ejb3Unit » com » bm » ejb3guice » inject » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » Ejb3Unit » com.bm.ejb3guice.inject 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bm.ejb3guice.inject.BinderImpl

BinderImpl
class BinderImpl implements Binder(Code)
Builds a dependency injection Injector . Binds Key s to implementations.
author:
   crazybob@google.com (Bob Lee)

Inner Class :interface CreationListener
Inner Class :static class RuntimeErrorHandler extends AbstractErrorHandler
Inner Class :class StaticInjection
Inner Class :static class BindingPreloader implements ContextualCallable<Void>
Inner Class :static class ProviderProxy implements Provider<T>,CreationListener

Field Summary
final static  Provider<Object>ILLEGAL_PROVIDER
    
final  List<BindingBuilderImpl<?>>bindingBuilders
    
 ErrorHandlerconfigurationErrorHandler
    
final  List<ConstantBindingBuilderImpl>constantBindingBuilders
    
final  CreationListnercrListner
    
final  List<CreationListener>creationListeners
    
final  Collection<Message>errorMessages
    
final  Class<? extends Annotation>[]injectionMarkers
    
 InjectorImplinjector
    
final  List<CreationListener>instanceInjectors
    
final  Set<Module>modulesInstalled
    
final  ProxyFactoryBuilderproxyFactoryBuilder
    
final  Map<Class<? extends Annotation>, Scope>scopes
    
final  Stagestage
    
final  List<StaticInjection>staticInjections
    
final  Stopwatchstopwatch
    

Constructor Summary
public  BinderImpl(Stage stage, Class<? extends Annotation>[] injectionMarkers, CreationListner crListner)
     Constructs a new builder.
Parameters:
  stage - we're running in.
public  BinderImpl()
     Constructs a new builder for a development environment (see Stage.DEVELOPMENT ).

Method Summary
 voidadd(Message errorMessage)
     Adds an error message to be reported at creation time.
public  voidaddError(String message, Object... arguments)
    
public  voidaddError(Throwable t)
    
 voidaddError(Object source, String message, Object... arguments)
    
 voidaddError(Object source, String message)
    
public  BindingBuilderImpl<T>bind(Key<T> key)
    
public  BindingBuilderImpl<T>bind(TypeLiteral<T> typeLiteral)
    
public  BindingBuilderImpl<T>bind(Class<T> clazz)
    
public  ConstantBindingBuilderImplbindConstant()
    
public  voidbindInterceptor(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, MethodInterceptor... interceptors)
    
public  voidbindScope(Class<? extends Annotation> annotationType, Scope scope)
    
 InjectorcreateInjector()
     Creates a Injector instance.
public  StagecurrentStage()
    
public  Provider<T>getProvider(Key<T> key)
    
public  Provider<T>getProvider(Class<T> type)
    
static  Provider<T>illegalProvider()
    
public  voidinstall(Module module)
    
 voidputBinding(BindingImpl binding)
    
public  voidrequestStaticInjection(Class... types)
    
 Objectsource()
     Gets the current source.

Field Detail
ILLEGAL_PROVIDER
final static Provider<Object> ILLEGAL_PROVIDER(Code)



bindingBuilders
final List<BindingBuilderImpl<?>> bindingBuilders(Code)



configurationErrorHandler
ErrorHandler configurationErrorHandler(Code)



constantBindingBuilders
final List<ConstantBindingBuilderImpl> constantBindingBuilders(Code)



crListner
final CreationListner crListner(Code)



creationListeners
final List<CreationListener> creationListeners(Code)



errorMessages
final Collection<Message> errorMessages(Code)



injectionMarkers
final Class<? extends Annotation>[] injectionMarkers(Code)



injector
InjectorImpl injector(Code)



instanceInjectors
final List<CreationListener> instanceInjectors(Code)



modulesInstalled
final Set<Module> modulesInstalled(Code)



proxyFactoryBuilder
final ProxyFactoryBuilder proxyFactoryBuilder(Code)



scopes
final Map<Class<? extends Annotation>, Scope> scopes(Code)



stage
final Stage stage(Code)



staticInjections
final List<StaticInjection> staticInjections(Code)



stopwatch
final Stopwatch stopwatch(Code)




Constructor Detail
BinderImpl
public BinderImpl(Stage stage, Class<? extends Annotation>[] injectionMarkers, CreationListner crListner)(Code)
Constructs a new builder.
Parameters:
  stage - we're running in. If the stage is Stage.PRODUCTION,we will eagerly load singletons.
Parameters:
  crListner -



BinderImpl
public BinderImpl()(Code)
Constructs a new builder for a development environment (see Stage.DEVELOPMENT ).




Method Detail
add
void add(Message errorMessage)(Code)
Adds an error message to be reported at creation time.



addError
public void addError(String message, Object... arguments)(Code)



addError
public void addError(Throwable t)(Code)



addError
void addError(Object source, String message, Object... arguments)(Code)



addError
void addError(Object source, String message)(Code)



bind
public BindingBuilderImpl<T> bind(Key<T> key)(Code)



bind
public BindingBuilderImpl<T> bind(TypeLiteral<T> typeLiteral)(Code)



bind
public BindingBuilderImpl<T> bind(Class<T> clazz)(Code)



bindConstant
public ConstantBindingBuilderImpl bindConstant()(Code)



bindInterceptor
public void bindInterceptor(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, MethodInterceptor... interceptors)(Code)



bindScope
public void bindScope(Class<? extends Annotation> annotationType, Scope scope)(Code)



createInjector
Injector createInjector() throws CreationException(Code)
Creates a Injector instance. Injects static members for classes which were registered using BinderImpl.requestStaticInjection(Class) .
throws:
  CreationException - if configuration errors are found. Theexpectation is that the application will log this exception and exit.
throws:
  IllegalStateException - if called more than once



currentStage
public Stage currentStage()(Code)



getProvider
public Provider<T> getProvider(Key<T> key)(Code)



getProvider
public Provider<T> getProvider(Class<T> type)(Code)



illegalProvider
static Provider<T> illegalProvider()(Code)



install
public void install(Module module)(Code)



putBinding
void putBinding(BindingImpl binding)(Code)



requestStaticInjection
public void requestStaticInjection(Class... types)(Code)



source
Object source()(Code)
Gets the current source.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.