Source Code Cross Referenced for ComponentMonitor.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 Referenced  Class Diagram Java Document (Java Doc) 


001:        /*****************************************************************************
002:         * Copyright (C) PicoContainer Organization. All rights reserved.            *
003:         * ------------------------------------------------------------------------- *
004:         * The software in this package is published under the terms of the BSD      *
005:         * style license a copy of which has been included with this distribution in *
006:         * the LICENSE.txt file.                                                     *
007:         *                                                                           *
008:         * Original code by Paul Hammant & Obie Fernandez & Aslak                    *
009:         *****************************************************************************/package org.picocontainer;
010:
011:        import java.lang.reflect.Constructor;
012:        import java.lang.reflect.Member;
013:        import java.lang.reflect.Method;
014:
015:        /**
016:         * A component monitor is responsible for monitoring the component instantiation
017:         * and method invocation.
018:         * 
019:         * @author Paul Hammant
020:         * @author Obie Fernandez
021:         * @author Aslak Hellesøy
022:         * @author Mauro Talevi
023:         */
024:        public interface ComponentMonitor {
025:
026:            /**
027:             * Event thrown as the component is being instantiated using the given constructor
028:             *
029:             * @param container
030:             * @param componentAdapter
031:             * @param constructor the Constructor used to instantiate the addComponent @return the constructor to use in instantiation (nearly always the same one as passed in)
032:             */
033:            <T> Constructor<T> instantiating(PicoContainer container,
034:                    ComponentAdapter<T> componentAdapter,
035:                    Constructor<T> constructor);
036:
037:            /**
038:             * Event thrown after the component has been instantiated using the given constructor.
039:             * This should be called for both Constructor and Setter DI.
040:             *
041:             * @param container
042:             * @param componentAdapter
043:             * @param constructor the Constructor used to instantiate the addComponent
044:             * @param instantiated the component that was instantiated by PicoContainer
045:             * @param injected the components during instantiation.
046:             * @param duration the duration in milliseconds of the instantiation
047:             */
048:
049:            <T> void instantiated(PicoContainer container,
050:                    ComponentAdapter<T> componentAdapter,
051:                    Constructor<T> constructor, Object instantiated,
052:                    Object[] injected, long duration);
053:
054:            /**
055:             * Event thrown if the component instantiation failed using the given constructor
056:             * 
057:             * @param container
058:             * @param componentAdapter
059:             * @param constructor the Constructor used to instantiate the addComponent
060:             * @param cause the Exception detailing the cause of the failure
061:             */
062:            <T> void instantiationFailed(PicoContainer container,
063:                    ComponentAdapter<T> componentAdapter,
064:                    Constructor<T> constructor, Exception cause);
065:
066:            /**
067:             * Event thrown as the component method is being invoked on the given instance
068:             * 
069:             * @param container
070:             * @param componentAdapter
071:             * @param member
072:             * @param instance the component instance
073:             */
074:            void invoking(PicoContainer container,
075:                    ComponentAdapter<?> componentAdapter, Member member,
076:                    Object instance);
077:
078:            /**
079:             * Event thrown after the component method has been invoked on the given instance
080:             * 
081:             * @param container
082:             * @param componentAdapter
083:             * @param method the Method invoked on the component instance
084:             * @param instance the component instance
085:             * @param duration the duration in millis of the invocation
086:             */
087:            void invoked(PicoContainer container,
088:                    ComponentAdapter<?> componentAdapter, Method method,
089:                    Object instance, long duration);
090:
091:            /**
092:             * Event thrown if the component method invocation failed on the given instance
093:             * 
094:             * @param member
095:             * @param instance the component instance
096:             * @param cause the Exception detailing the cause of the failure
097:             */
098:            void invocationFailed(Member member, Object instance,
099:                    Exception cause);
100:
101:            /**
102:             * Event thrown if a lifecycle method invocation - start, stop or dispose - 
103:             * failed on the given instance
104:             *
105:             * @param container
106:             * @param componentAdapter
107:             * @param method the lifecycle Method invoked on the component instance
108:             * @param instance the component instance
109:             * @param cause the RuntimeException detailing the cause of the failure
110:             */
111:            void lifecycleInvocationFailed(MutablePicoContainer container,
112:                    ComponentAdapter<?> componentAdapter, Method method,
113:                    Object instance, RuntimeException cause);
114:
115:            /**
116:             * 
117:             * @param container
118:             * @param componentKey
119:             */
120:            Object noComponentFound(MutablePicoContainer container,
121:                    Object componentKey);
122:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.