Java Doc for MethodAnnotationMetadata.java in  » Testing » Ejb3Unit » com » bm » ejb3metadata » annotations » metadata » 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 » Testing » Ejb3Unit » com.bm.ejb3metadata.annotations.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bm.ejb3metadata.annotations.metadata.CommonAnnotationMetadata
      com.bm.ejb3metadata.annotations.metadata.MethodAnnotationMetadata

MethodAnnotationMetadata
public class MethodAnnotationMetadata extends CommonAnnotationMetadata implements Cloneable,ITransactionAttribute,IEJBInterceptors(Code)
This class represents the annotation metadata of a method.
author:
   Daniel Wiese



Constructor Summary
public  MethodAnnotationMetadata(JMethod jMethod, ClassAnnotationMetadata classAnnotationMetadata)
     Constructor.

Method Summary
public  Objectclone()
    
public  JInterceptorsgetAnnotationInterceptors()
    
public  ClassAnnotationMetadatagetClassAnnotationMetadata()
    
public  List<JClassInterceptor>getGlobalEasyBeansInterceptors()
     list of global interceptors that enhancer will use.
public  List<JClassInterceptor>getInterceptors()
     list of interceptors that enhancer will use.
public  JMethodgetJMethod()
    
public  RemovegetJRemove()
    
public  StringgetMethodName()
    
public  ClassAnnotationMetadatagetOriginalClassAnnotationMetadata()
    
public  TransactionAttributeTypegetTransactionAttributeType()
    
public  Map<InterceptorType, List<JClassInterceptor>>getUserEasyBeansInterceptors()
    
public  booleanisAroundInvoke()
    
public  booleanisBusinessMethod()
    
public  booleanisExcludedClassInterceptors()
    
public  booleanisInherited()
    
public  booleanisLifeCycleMethod()
    
public  booleanisPostActivate()
    
public  booleanisPostConstruct()
    
public  booleanisPreDestroy()
    
public  booleanisPrePassivate()
    
public  booleanisTimeout()
    
public  voidsetAnnotationsInterceptors(JInterceptors annotationInterceptors)
     Sets the object representing the @ javax.interceptor.Interceptors annotation.
public  voidsetAroundInvoke(boolean aroundInvoke)
     Sets true if method has @ javax.interceptor.AroundInvoke .
public  voidsetBusinessMethod(boolean flag)
     This method is a business method.
public  voidsetClassAnnotationMetadata(ClassAnnotationMetadata classAnnotationMetadata)
     Replace the link to the classannotation metadata.
public  voidsetExcludeClassInterceptors(boolean excludeClassInterceptors)
     Flag this method as a method which exclude user interceptors.
public  voidsetGlobalEasyBeansInterceptors(List<JClassInterceptor> globalEasyBeansInterceptors)
     Sets the list of global interceptors that enhancers will use.
public  voidsetInherited(boolean inherited, ClassAnnotationMetadata originalClassAnnotationMetadata)
     Sets the inheritance of this method.
public  voidsetInterceptors(List<JClassInterceptor> interceptors)
     Sets the list of interceptors(tx, security, etc) that enhancers will use.
These interceptors are defined per methods.
public  voidsetPostActivate(boolean postActivate)
     Sets true if method has @ javax.ejb.PostActivate .
public  voidsetPostConstruct(boolean postConstruct)
     Sets true if method has @ javax.annotation.PostConstruct .
public  voidsetPreDestroy(boolean preDestroy)
     Sets true if method has @ javax.annotation.PreDestroy .
public  voidsetPrePassivate(boolean prePassivate)
     Sets true if method has @ javax.ejb.PrePassivate .
public  voidsetRemove(Remove remove)
     Sets @ javax.ejb.Remove attribute.
public  voidsetTimeout(boolean timeout)
     Sets true if method has @ javax.ejb.Timeout .
public  voidsetTransactionAttributeType(TransactionAttributeType transactionAttributeType)
     Sets Transaction Attribute Type.
public  voidsetUserInterceptors(Map<InterceptorType, List<JClassInterceptor>> userInterceptors)
     Sets the list of user interceptors that enhancers will use.
These interceptors are defined in bean class.
public  StringtoString()
    


Constructor Detail
MethodAnnotationMetadata
public MethodAnnotationMetadata(JMethod jMethod, ClassAnnotationMetadata classAnnotationMetadata)(Code)
Constructor.
Parameters:
  jMethod - the method on which we will set/add metadata
Parameters:
  classAnnotationMetadata - the parent metadata.




Method Detail
clone
public Object clone()(Code)
a clone object.



getAnnotationInterceptors
public JInterceptors getAnnotationInterceptors()(Code)
object representing list of @javax.interceptor.Interceptors.



getClassAnnotationMetadata
public ClassAnnotationMetadata getClassAnnotationMetadata()(Code)
parent metadata (class)



getGlobalEasyBeansInterceptors
public List<JClassInterceptor> getGlobalEasyBeansInterceptors()(Code)
list of global interceptors that enhancer will use. (ie : Remove interceptor)



getInterceptors
public List<JClassInterceptor> getInterceptors()(Code)
list of interceptors that enhancer will use. (ie : security/transaction)



getJMethod
public JMethod getJMethod()(Code)
JMethod object



getJRemove
public Remove getJRemove()(Code)
remove attributes @javax.ejb.Remove attributes



getMethodName
public String getMethodName()(Code)
name of the method



getOriginalClassAnnotationMetadata
public ClassAnnotationMetadata getOriginalClassAnnotationMetadata()(Code)
original parent metadata (class) if inherited.



getTransactionAttributeType
public TransactionAttributeType getTransactionAttributeType()(Code)
transaction Attribute type.
See Also:   javax.ejb.TransactionAttributeType



getUserEasyBeansInterceptors
public Map<InterceptorType, List<JClassInterceptor>> getUserEasyBeansInterceptors()(Code)
Map<interceptor type <--> List of methods/class corresponding to the interceptor>of user interceptors that enhancer will use.



isAroundInvoke
public boolean isAroundInvoke()(Code)
true if method has @javax.interceptor.AroundInvoke.



isBusinessMethod
public boolean isBusinessMethod()(Code)
true if the method is a business method.



isExcludedClassInterceptors
public boolean isExcludedClassInterceptors()(Code)
true if this method won't use user interceptors.



isInherited
public boolean isInherited()(Code)
true if this method is inherited from a super class



isLifeCycleMethod
public boolean isLifeCycleMethod()(Code)
true if the method is a lifecycle method.



isPostActivate
public boolean isPostActivate()(Code)
true if method has @javax.ejb.PostActivate



isPostConstruct
public boolean isPostConstruct()(Code)
true if method has @javax.annotation.PostConstruct.



isPreDestroy
public boolean isPreDestroy()(Code)
true if method has @javax.annotation.PreDestroy.



isPrePassivate
public boolean isPrePassivate()(Code)
true if method has @javax.ejb.PrePassivate.



isTimeout
public boolean isTimeout()(Code)
true if method has @javax.ejb.Timeout.



setAnnotationsInterceptors
public void setAnnotationsInterceptors(JInterceptors annotationInterceptors)(Code)
Sets the object representing the @ javax.interceptor.Interceptors annotation.
Parameters:
  annotationInterceptors - list of classes



setAroundInvoke
public void setAroundInvoke(boolean aroundInvoke)(Code)
Sets true if method has @ javax.interceptor.AroundInvoke .
Parameters:
  aroundInvoke - true/false



setBusinessMethod
public void setBusinessMethod(boolean flag)(Code)
This method is a business method.
Parameters:
  flag - true/false if method is a business method.



setClassAnnotationMetadata
public void setClassAnnotationMetadata(ClassAnnotationMetadata classAnnotationMetadata)(Code)
Replace the link to the classannotation metadata.
Parameters:
  classAnnotationMetadata - new object for the link.



setExcludeClassInterceptors
public void setExcludeClassInterceptors(boolean excludeClassInterceptors)(Code)
Flag this method as a method which exclude user interceptors.
Parameters:
  excludeClassInterceptors - true if this method is a method which exclude user interceptors.



setGlobalEasyBeansInterceptors
public void setGlobalEasyBeansInterceptors(List<JClassInterceptor> globalEasyBeansInterceptors)(Code)
Sets the list of global interceptors that enhancers will use.
Parameters:
  globalEasyBeansInterceptors - list of interceptors that enhancer will use.



setInherited
public void setInherited(boolean inherited, ClassAnnotationMetadata originalClassAnnotationMetadata)(Code)
Sets the inheritance of this method.
Parameters:
  inherited - true if method is from a super class
Parameters:
  originalClassAnnotationMetadata - the metadata of the original class (not inherited)



setInterceptors
public void setInterceptors(List<JClassInterceptor> interceptors)(Code)
Sets the list of interceptors(tx, security, etc) that enhancers will use.
These interceptors are defined per methods.
Parameters:
  interceptors - list of interceptors that enhancer will use.



setPostActivate
public void setPostActivate(boolean postActivate)(Code)
Sets true if method has @ javax.ejb.PostActivate .
Parameters:
  postActivate - true/false.



setPostConstruct
public void setPostConstruct(boolean postConstruct)(Code)
Sets true if method has @ javax.annotation.PostConstruct .
Parameters:
  postConstruct - true/false.



setPreDestroy
public void setPreDestroy(boolean preDestroy)(Code)
Sets true if method has @ javax.annotation.PreDestroy .
Parameters:
  preDestroy - true/false.



setPrePassivate
public void setPrePassivate(boolean prePassivate)(Code)
Sets true if method has @ javax.ejb.PrePassivate .
Parameters:
  prePassivate - true/false.



setRemove
public void setRemove(Remove remove)(Code)
Sets @ javax.ejb.Remove attribute.
Parameters:
  remove - contains the attribute with retainIfException.



setTimeout
public void setTimeout(boolean timeout)(Code)
Sets true if method has @ javax.ejb.Timeout .
Parameters:
  timeout - true/false.



setTransactionAttributeType
public void setTransactionAttributeType(TransactionAttributeType transactionAttributeType)(Code)
Sets Transaction Attribute Type.
See Also:   javax.ejb.TransactionAttributeType
Parameters:
  transactionAttributeType - the type of transaction.



setUserInterceptors
public void setUserInterceptors(Map<InterceptorType, List<JClassInterceptor>> userInterceptors)(Code)
Sets the list of user interceptors that enhancers will use.
These interceptors are defined in bean class.
Parameters:
  userInterceptors - list of interceptors that enhancer will use.



toString
public String toString()(Code)
string representation



Methods inherited from com.bm.ejb3metadata.annotations.metadata.CommonAnnotationMetadata
protected static void concatStringBuilder(String name, Object object, StringBuilder sb, String indent)(Code)(Java Doc)
protected static void concatStringBuilder(String name, Object object, StringBuilder sb)(Code)(Java Doc)
public JAnnotationResource getJAnnotationResource()(Code)(Java Doc)
public JEjbEJB getJEjbEJB()(Code)(Java Doc)
public JavaxPersistenceContext getJavaxPersistenceContext()(Code)(Java Doc)
public JavaxPersistenceUnit getJavaxPersistenceUnit()(Code)(Java Doc)
public boolean isPersistenceContext()(Code)(Java Doc)
public boolean isPersistenceUnit()(Code)(Java Doc)
public void setJAnnotationResource(JAnnotationResource jAnnotationResource)(Code)(Java Doc)
public void setJEjbEJB(JEjbEJB jEjbEJB)(Code)(Java Doc)
public void setJavaxPersistenceContext(JavaxPersistenceContext javaxPersistenceContext)(Code)(Java Doc)
public void setJavaxPersistenceUnit(JavaxPersistenceUnit javaxPersistenceUnit)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.