Java Doc for PicoContainer.java in  » Inversion-of-Control » PicoContainer » org » picocontainer » 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 » PicoContainer » org.picocontainer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.picocontainer.PicoContainer

All known Subclasses:   org.picocontainer.containers.EmptyPicoContainer,  org.picocontainer.containers.AbstractDelegatingPicoContainer,  org.picocontainer.containers.ImmutablePicoContainer,
PicoContainer
public interface PicoContainer (Code)
This is the core interface for PicoContainer. It is used to retrieve component instances from the container; it only has accessor methods (in addition to the PicoContainer.accept(PicoVisitor) method). In order to register components in a PicoContainer, use a MutablePicoContainer , such as DefaultPicoContainer .
author:
   Paul Hammant
author:
   Aslak Hellesøy
author:
   Jon Tirsén
See Also:    See package description for basic overview how to use * PicoContainer.




Method Summary
 voidaccept(PicoVisitor visitor)
     Accepts a visitor that should visit the child containers, component adapters and component instances.
 ObjectgetComponent(Object componentKeyOrType)
     Retrieve a component instance registered with a specific key or type.
 TgetComponent(Class<T> componentType)
     Retrieve a component keyed by the component type.
 TgetComponent(Class<T> componentType, Class<? extends Annotation> binding)
    
 ComponentAdaptergetComponentAdapter(Object componentKey)
     Find a component adapter associated with the specified key.
 ComponentAdapter<T>getComponentAdapter(Class<T> componentType, NameBinding componentNameBinding)
     Find a component adapter associated with the specified type.
 ComponentAdapter<T>getComponentAdapter(Class<T> componentType, Class<? extends Annotation> binding)
    
 Collection<ComponentAdapter<?>>getComponentAdapters()
     Retrieve all the component adapters inside this container.
 List<ComponentAdapter<T>>getComponentAdapters(Class<T> componentType)
     Retrieve all component adapters inside this container that are associated with the specified type.
 List<ComponentAdapter<T>>getComponentAdapters(Class<T> componentType, Class<? extends Annotation> binding)
    
 List<Object>getComponents()
     Retrieve all the registered component instances in the container, (not including those in the parent container).
 List<T>getComponents(Class<T> componentType)
     Returns a List of components of a certain componentType.
 PicoContainergetParent()
     Retrieve the parent container of this container.



Method Detail
accept
void accept(PicoVisitor visitor)(Code)
Accepts a visitor that should visit the child containers, component adapters and component instances.
Parameters:
  visitor - the visitor



getComponent
Object getComponent(Object componentKeyOrType)(Code)
Retrieve a component instance registered with a specific key or type. If a component cannot be found in this container, the parent container (if one exists) will be searched.
Parameters:
  componentKeyOrType - the key or Type that the component was registered with. an instantiated component, or null if no component has been registered for the specifiedkey.



getComponent
T getComponent(Class<T> componentType)(Code)
Retrieve a component keyed by the component type. <
Parameters:
  T - > the type of the component.
Parameters:
  componentType - the type of the component the typed resulting object instance or null if the object does not exist.



getComponent
T getComponent(Class<T> componentType, Class<? extends Annotation> binding)(Code)



getComponentAdapter
ComponentAdapter getComponentAdapter(Object componentKey)(Code)
Find a component adapter associated with the specified key. If a component adapter cannot be found in this container, the parent container (if one exists) will be searched.
Parameters:
  componentKey - the key that the component was registered with. the component adapter associated with this key, or null if no component has beenregistered for the specified key.



getComponentAdapter
ComponentAdapter<T> getComponentAdapter(Class<T> componentType, NameBinding componentNameBinding)(Code)
Find a component adapter associated with the specified type. If a component adapter cannot be found in this container, the parent container (if one exists) will be searched.
Parameters:
  componentType - the type of the component. the component adapter associated with this class, or null if no component has beenregistered for the specified key.
Parameters:
  componentNameBinding -



getComponentAdapter
ComponentAdapter<T> getComponentAdapter(Class<T> componentType, Class<? extends Annotation> binding)(Code)



getComponentAdapters
Collection<ComponentAdapter<?>> getComponentAdapters()(Code)
Retrieve all the component adapters inside this container. The component adapters from the parent container are not returned. a collection containing all the ComponentAdapters inside this container. The collection will notbe modifiable.
See Also:   PicoContainer.getComponentAdapters(Class)
See Also:    a variant of this method which returns the component adapters inside this
See Also:   container that are associated with the specified type.



getComponentAdapters
List<ComponentAdapter<T>> getComponentAdapters(Class<T> componentType)(Code)
Retrieve all component adapters inside this container that are associated with the specified type. The addComponent adapters from the parent container are not returned.
Parameters:
  componentType - the type of the components. a collection containing all the ComponentAdapters inside this container that are associated withthe specified type. Changes to this collection will not be reflected in the container itself.



getComponentAdapters
List<ComponentAdapter<T>> getComponentAdapters(Class<T> componentType, Class<? extends Annotation> binding)(Code)



getComponents
List<Object> getComponents()(Code)
Retrieve all the registered component instances in the container, (not including those in the parent container). The components are returned in their order of instantiation, which depends on the dependency order between them. all the components.
throws:
  PicoException - if the instantiation of the component fails



getComponents
List<T> getComponents(Class<T> componentType)(Code)
Returns a List of components of a certain componentType. The list is ordered by instantiation order, starting with the components instantiated first at the beginning.
Parameters:
  componentType - the searched type. a List of components.
throws:
  PicoException - if the instantiation of a component fails



getParent
PicoContainer getParent()(Code)
Retrieve the parent container of this container. a PicoContainer instance, or null if this container does not have a parent.



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