Source Code Cross Referenced for MyImpl.java in  » Aspect-oriented » aspectwerkz-2.0 » test » mixin » perinstance » 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 » Aspect oriented » aspectwerkz 2.0 » test.mixin.perinstance 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**************************************************************************************
002:         * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved.                 *
003:         * http://aspectwerkz.codehaus.org                                                    *
004:         * ---------------------------------------------------------------------------------- *
005:         * The software in this package is published under the terms of the LGPL license      *
006:         * a copy of which has been included with this distribution in the license.txt file.  *
007:         **************************************************************************************/package test.mixin.perinstance;
008:
009:        /**
010:         * Here we use an expression:
011:         *
012:         * @Mixin(pointcut="within(test.mixin.perinstance.ToBeIntroduced) OR
013:         *            hasfield(int test.mixin.perinstance.*.thisFieldNameShouldHopefullyBeUnique_perinstance) OR
014:         *            hasmethod(void test.mixin.perinstance.*.thisMethodNameShouldHopefullyBeUnique_perinstance(..)) OR
015:         *            within(test.mixin.perinstance.ToBeIntroducedParent)",
016:         *            isTransient=true)
017:         *
018:         * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
019:         */
020:        public class MyImpl implements  Introductions, Cloneable {
021:
022:            public MyImpl(Object targetInstance) {
023:            }
024:
025:            public void NOT_IN_MIXIN_INTF() {
026:            }
027:
028:            //TODO: allow naming of mixin instead of innerClass FQN
029:            public void noArgs() throws RuntimeException {
030:            }
031:
032:            public long longArg(long arg) {
033:                return arg;
034:            }
035:
036:            public int intArg(int arg) {
037:                return arg;
038:            }
039:
040:            public short shortArg(short arg) {
041:                return arg;
042:            }
043:
044:            public double doubleArg(double arg) {
045:                return arg;
046:            }
047:
048:            public float floatArg(float arg) {
049:                return arg;
050:            }
051:
052:            public byte byteArg(byte arg) {
053:                return arg;
054:            }
055:
056:            public boolean booleanArg(boolean arg) {
057:                return arg;
058:            }
059:
060:            public char charArg(char arg) {
061:                return arg;
062:            }
063:
064:            public Object objectArg(Object arg) {
065:                return arg;
066:            }
067:
068:            public String[] arrayArg(String[] arg) {
069:                return arg;
070:            }
071:
072:            public int variousArguments1(String str, int i, float f, Object o,
073:                    long l) throws RuntimeException {
074:                return str.hashCode() + i + (int) f + o.hashCode() + (int) l;
075:            }
076:
077:            public int variousArguments2(float f, int i, String str1, Object o,
078:                    long l, String str2) throws RuntimeException {
079:                return (int) f + i + str1.hashCode() + o.hashCode() + (int) l
080:                        + str2.hashCode();
081:            }
082:
083:            public void getVoid() throws RuntimeException {
084:            }
085:
086:            public long getLong() throws RuntimeException {
087:                return 1L;
088:            }
089:
090:            public int getInt() throws RuntimeException {
091:                return 1;
092:            }
093:
094:            public short getShort() throws RuntimeException {
095:                return 1;
096:            }
097:
098:            public double getDouble() throws RuntimeException {
099:                return 1.1D;
100:            }
101:
102:            public float getFloat() throws RuntimeException {
103:                return 1.1F;
104:            }
105:
106:            public byte getByte() throws RuntimeException {
107:                return Byte.parseByte("1");
108:            }
109:
110:            public char getChar() throws RuntimeException {
111:                return 'A';
112:            }
113:
114:            public boolean getBoolean() throws RuntimeException {
115:                return true;
116:            }
117:
118:            public void exceptionThrower() throws Throwable {
119:                throw new UnsupportedOperationException("this is a test");
120:            }
121:
122:            public void exceptionThrowerChecked() throws CheckedException {
123:                throw new CheckedException();
124:            }
125:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.