Java Doc for InjectorImpl.java in  » Inversion-of-Control » guice-1.0 » com » google » 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 » Inversion of Control » guice 1.0 » com.google.inject 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.inject.InjectorImpl

InjectorImpl
class InjectorImpl implements Injector(Code)
Default Injector implementation.
author:
   crazybob@google.com (Bob Lee)
See Also:   BinderImpl

Inner Class :interface SingleInjectorFactory
Inner Class :class SingleFieldInjector implements SingleMemberInjector
Inner Class :static class SingleMethodInjector implements SingleMemberInjector
Inner Class :interface MethodInvoker
Inner Class :static class InvalidConstructor
Inner Class :static class SingleParameterInjector
Inner Class :interface SingleMemberInjector
Inner Class :class MissingDependencyException extends Exception
Inner Class :static class PrimitiveConverters extends HashMap,Converter>
Inner Class :interface Converter
Inner Class :static class ImplicitBinding implements InternalFactory<T>

Field Summary
final  Map<Key<?>, BindingImpl<?>>bindings
    
final  BindingsMultimapbindingsMultimap
    
final  ConstructionProxyFactoryconstructionProxyFactory
    
final  Map<Class<?>, ConstructorInjector>constructors
    
 ObjectdefaultSource
    
 ErrorHandlererrorHandler
    
 Map<Class<?>, InternalFactory<?>>implicitBindings
    
final  Map<Class<?>, List<SingleMemberInjector>>injectors
     Field and method injectors.
final  ThreadLocal<InternalContext[]>localContext
    
final  Map<Class<? extends Annotation>, Scope>scopes
    

Constructor Summary
 InjectorImpl(ConstructionProxyFactory constructionProxyFactory, Map<Key<?>, BindingImpl<?>> bindings, Map<Class<? extends Annotation>, Scope> scopes)
    

Method Summary
 voidaddInjectors(Class clazz, List<SingleMemberInjector> injectors)
     Recursively adds injectors for fields and methods from the given class to the given list.
 voidaddInjectorsForMembers(List<M> members, boolean statics, List<SingleMemberInjector> injectors, SingleInjectorFactory<M> injectorFactory)
    
 voidaddSingleInjectorsForFields(Field[] fields, boolean statics, List<SingleMemberInjector> injectors)
    
 voidaddSingleInjectorsForMethods(Method[] methods, boolean statics, List<SingleMemberInjector> injectors)
    
 TcallInContext(ContextualCallable<T> callable)
     Looks up thread local context.
 SingleParameterInjector<T>createParameterInjector(Key<T> key, Member member, int index)
    
public  List<Binding<T>>findBindingsByType(TypeLiteral<T> type)
    
public  BindingImpl<T>getBinding(Key<T> key)
    
public  Map<Key<?>, Binding<?>>getBindings()
    
 ConstructorInjector<T>getConstructor(Class<T> implementation)
     Gets a constructor function for a given implementation class.
 ConstructorInjector<T>getConstructor(TypeLiteral<T> implementation)
    
 InternalFactory<? extends T>getImplicitBinding(Member member, Class<T> type, Scope scope)
     Gets a factory for the specified type.
public  TgetInstance(Key<T> key)
    
public  TgetInstance(Class<T> type)
    
 InternalFactory<? extends T>getInternalFactory(Member member, Key<T> key)
    
 List<String>getNamesOfBindingAnnotations(TypeLiteral<T> type)
    
static  Object[]getParameters(InternalContext context, SingleParameterInjector[] parameterInjectors)
     Iterates over parameter injectors and creates an array of parameter values.
 SingleParameterInjector[]getParametersInjectors(M member, Annotation[][] annotations, Type[] parameterTypes)
     Gets parameter injectors.
public  Provider<T>getProvider(Class<T> type)
    
public  Provider<T>getProvider(Key<T> key)
    
 voidindex()
     Indexes bindings by type.
 voidindex(BindingImpl<T> binding)
    
 voidinjectMembers(Object o, InternalContext context)
    
public  voidinjectMembers(Object o)
    
 Map<Key<?>, BindingImpl<?>>internalBindings()
    
static  Constructor<T>invalidConstructor()
    
static  InternalFactory<T>invalidFactory()
    
 voidsetErrorHandler(ErrorHandler errorHandler)
    
public  StringtoString()
    
 voidwithDefaultSource(Object defaultSource, Runnable runnable)
     This is only used during Injector building.

Field Detail
bindings
final Map<Key<?>, BindingImpl<?>> bindings(Code)



bindingsMultimap
final BindingsMultimap bindingsMultimap(Code)



constructionProxyFactory
final ConstructionProxyFactory constructionProxyFactory(Code)



constructors
final Map<Class<?>, ConstructorInjector> constructors(Code)



defaultSource
Object defaultSource(Code)



errorHandler
ErrorHandler errorHandler(Code)



implicitBindings
Map<Class<?>, InternalFactory<?>> implicitBindings(Code)



injectors
final Map<Class<?>, List<SingleMemberInjector>> injectors(Code)
Field and method injectors.



localContext
final ThreadLocal<InternalContext[]> localContext(Code)



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




Constructor Detail
InjectorImpl
InjectorImpl(ConstructionProxyFactory constructionProxyFactory, Map<Key<?>, BindingImpl<?>> bindings, Map<Class<? extends Annotation>, Scope> scopes)(Code)




Method Detail
addInjectors
void addInjectors(Class clazz, List<SingleMemberInjector> injectors)(Code)
Recursively adds injectors for fields and methods from the given class to the given list. Injects parent classes before sub classes.



addInjectorsForMembers
void addInjectorsForMembers(List<M> members, boolean statics, List<SingleMemberInjector> injectors, SingleInjectorFactory<M> injectorFactory)(Code)



addSingleInjectorsForFields
void addSingleInjectorsForFields(Field[] fields, boolean statics, List<SingleMemberInjector> injectors)(Code)



addSingleInjectorsForMethods
void addSingleInjectorsForMethods(Method[] methods, boolean statics, List<SingleMemberInjector> injectors)(Code)



callInContext
T callInContext(ContextualCallable<T> callable)(Code)
Looks up thread local context. Creates (and removes) a new context if necessary.



createParameterInjector
SingleParameterInjector<T> createParameterInjector(Key<T> key, Member member, int index) throws MissingDependencyException(Code)



findBindingsByType
public List<Binding<T>> findBindingsByType(TypeLiteral<T> type)(Code)



getBinding
public BindingImpl<T> getBinding(Key<T> key)(Code)



getBindings
public Map<Key<?>, Binding<?>> getBindings()(Code)



getConstructor
ConstructorInjector<T> getConstructor(Class<T> implementation)(Code)
Gets a constructor function for a given implementation class.



getConstructor
ConstructorInjector<T> getConstructor(TypeLiteral<T> implementation)(Code)



getImplicitBinding
InternalFactory<? extends T> getImplicitBinding(Member member, Class<T> type, Scope scope)(Code)
Gets a factory for the specified type. Used when an explicit binding was not made. Uses synchronization here so it's not necessary in the factory itself. Returns null if the type isn't injectable.



getInstance
public T getInstance(Key<T> key)(Code)



getInstance
public T getInstance(Class<T> type)(Code)



getInternalFactory
InternalFactory<? extends T> getInternalFactory(Member member, Key<T> key)(Code)



getNamesOfBindingAnnotations
List<String> getNamesOfBindingAnnotations(TypeLiteral<T> type)(Code)



getParameters
static Object[] getParameters(InternalContext context, SingleParameterInjector[] parameterInjectors)(Code)
Iterates over parameter injectors and creates an array of parameter values.



getParametersInjectors
SingleParameterInjector[] getParametersInjectors(M member, Annotation[][] annotations, Type[] parameterTypes) throws MissingDependencyException(Code)
Gets parameter injectors.
Parameters:
  member - to which the parameters belong
Parameters:
  annotations - on the parameters
Parameters:
  parameterTypes - parameter types injections



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



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



index
void index()(Code)
Indexes bindings by type.



index
void index(BindingImpl<T> binding)(Code)



injectMembers
void injectMembers(Object o, InternalContext context)(Code)



injectMembers
public void injectMembers(Object o)(Code)



internalBindings
Map<Key<?>, BindingImpl<?>> internalBindings()(Code)



invalidConstructor
static Constructor<T> invalidConstructor()(Code)



invalidFactory
static InternalFactory<T> invalidFactory()(Code)



setErrorHandler
void setErrorHandler(ErrorHandler errorHandler)(Code)



toString
public String toString()(Code)



withDefaultSource
void withDefaultSource(Object defaultSource, Runnable runnable)(Code)
This is only used during Injector building.



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.