Source Code Cross Referenced for HotSwapMethodJoinPointImpl.java in  » Byte-Code » PROSE » ch » ethz » inf » iks » jvmai » jvmdi » 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 » Byte Code » PROSE » ch.ethz.inf.iks.jvmai.jvmdi 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        //
002:        //This file is part of the prose package.
003:        //
004:        //The contents of this file are subject to the Mozilla Public License
005:        //Version 1.1 (the "License"); you may not use this file except in
006:        //compliance with the License. You may obtain a copy of the License at
007:        //http://www.mozilla.org/MPL/
008:        //
009:        //Software distributed under the License is distributed on an "AS IS" basis,
010:        //WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011:        //for the specific language governing rights and limitations under the
012:        //License.
013:        //
014:        //The Original Code is prose.
015:        //
016:        //Contributor(s):
017:        //$Id: HotSwapMethodJoinPointImpl.java,v 1.1.2.1 2004/08/10 19:37:38 lgerald Exp $
018:        //=====================================================================
019:        //
020:        //(history at end)
021:        //
022:
023:        package ch.ethz.inf.iks.jvmai.jvmdi;
024:
025:        import java.lang.reflect.Method;
026:
027:        /**
028:         * Super class for method entry/exit join points (method execution join points).
029:         * 
030:         * @author  Angela Nicoara
031:         * @author  Gerald Linhofer
032:         * @version $Revision$
033:         */
034:        public abstract class HotSwapMethodJoinPointImpl extends
035:                HotSwapJoinPointImpl {
036:
037:            /**
038:             * Method identifier to which this join point belongs.
039:             * (this has nothing to do with JNI jmethodIDs)
040:             */
041:            protected int methodId;
042:
043:            /**
044:             * Constructs an uninitialized instance.
045:             * To use it {@link #init} must be called
046:             * after construction.
047:             */
048:            HotSwapMethodJoinPointImpl() {
049:                super ();
050:            }
051:
052:            /**
053:             * Constructs an initialized instance.
054:             * @param id method identifier to which this join point belongs
055:             * @param tag AOP tag associated with this join point
056:             */
057:            HotSwapMethodJoinPointImpl(int id, Object tag) {
058:                super (tag, 0);
059:                methodId = id;
060:            }
061:
062:            /**
063:             * (Re)Initialize this join point.
064:             *
065:             * @param id method identifier to which this join point belongs
066:             * @param tag AOP tag associated with this join point
067:             */
068:            public void init(int id, Object tag) {
069:                methodId = id;
070:                super .init(tag);
071:            }
072:
073:            /**
074:             * Returns the object the join point target belongs to.
075:             * For method entry and exit join points this returns
076:             * the same like {@link #getThis getThis()}.
077:             * 
078:             * @return Object
079:             * @throws IlligalIdException can not find the stack frame of the 'target'.
080:             */
081:            public Object getTarget() {
082:                return getThis();
083:            }
084:
085:            /**
086:             * Returns the method to that this join point belongs.
087:             * <P> 
088:             * Overwrites the method of the super class with a
089:             * faster implementation for method join points.
090:             * 
091:             * @return Method reflected method or null if the
092:             * 							method is a constructor.
093:             */
094:            public Method getMethod() {
095:                if (null == method) {
096:                    method = (Method) HotSwapClassWeaver.idToMethod(methodId);
097:                }
098:                return method;
099:            }
100:
101:        }
102:
103:        //======================================================================
104:        //
105:        //$Log$
106:        //
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.