Quickly, what’s an annotation?

فهرست عناوین اصلی در این پاورپوینت

فهرست عناوین اصلی در این پاورپوینت

● an introduction to
Java Annotations

Walter Harley
BEA Systems Inc.
● Introduction
● Quickly, what’s an annotation?
● Where did annotations come from?
● Agenda
● How are annotations used?
● Annotations as fancy comments
● Using annotations with IDE support
● Annotation processing at compile time
● Processing annotations on class files
● Reading annotations at runtime (JUnit 4)
● Reading annotations at runtime (Hibernate)
● Agenda
● Declaring a marker annotation type
● Declaring a full annotation type
● Declaring a single-valued annotation type
● Annotation types look like interfaces…
● Annotation types can be used like interfaces…
● …but with many restrictions
● Members can only be of certain types
● How do you annotate code?
● Package annotations
● Using an annotation: member restrictions
● Where do you get annotations?
● Built-in annotations
● Built-in annotations for annotations
● Processing annotations at compile time
● The APT APIs
● Reflecting on annotations at runtime
● Agenda
● JSR-305: annotations for software quality
● JSR-308: annotations in more places
● SWAGs about the future
● Agenda
● an introduction to
Java Annotations

Walter Harley
BEA Systems Inc.


نوع زبان: انگلیسی حجم: 0.43 مگا بایت
نوع فایل: اسلاید پاورپوینت تعداد اسلایدها: 35 صفحه
سطح مطلب: نامشخص پسوند فایل: ppt
گروه موضوعی: زمان استخراج مطلب: 2019/05/17 06:16:29

لینک دانلود رایگان لینک دانلود کمکی

اسلایدهای پاورپوینت مرتبط در پایین صفحه

عبارات مهم استفاده شده در این مطلب

عبارات مهم استفاده شده در این مطلب

annotation, ., java, inc., bea, system, make, available, epl, v۱, class, deploy,

توجه: این مطلب در تاریخ 2019/05/17 06:16:29 به صورت خودکار از فضای وب آشکار توسط موتور جستجوی پاورپوینت جمع آوری شده است و در صورت اعلام عدم رضایت تهیه کننده ی آن، طبق قوانین سایت از روی وب گاه حذف خواهد شد. این مطلب از وب سایت زیر استخراج شده است و مسئولیت انتشار آن با منبع اصلی است.

https://www.eclipse.org/jdt/apt/eclipsecon2008.ppt

در صورتی که محتوای فایل ارائه شده با عنوان مطلب سازگار نبود یا مطلب مذکور خلاف قوانین کشور بود لطفا در بخش دیدگاه (در پایین صفحه) به ما اطلاع دهید تا بعد از بررسی در کوتاه ترین زمان نسبت به حدف با اصلاح آن اقدام نماییم. جهت جستجوی پاورپوینت های بیشتر بر روی اینجا کلیک کنید.

عبارات پرتکرار و مهم در این اسلاید عبارتند از: annotation, ., java, inc., bea, system, make, available, epl, v۱, class, deploy,

مشاهده محتوای متنیِ این اسلاید ppt

مشاهده محتوای متنیِ این اسلاید ppt

۲ ۸ by bea systems inc. made available under the epl v۱. ۳ ۱۸ ۲ ۸ java annotations an introduction to java annotations walter harley bea systems inc. @ java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. introduction who am i walter harley bea systems inc. jdt apt lead eclipse committer since ۲ ۵ caveat i am not a j۲ee developer i will be talking about use cases for annotations how to declare and use annotations swags about the future of annotations i won’t be talking about details of writing annotation processors annotation support features in eclipse @ java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. quickly what’s an annotation @interface author string name int year program metadata – decorations on ordinary java code. like javadoc comments but with syntax and strong types. meant to be both human and machine readable. no relation to eclipse editor annotations @author name walter harley year ۲ ۸ class myclass declaration usage details of definition syntax in the third section on language details. java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. where did annotations come from main goal auto generate j۲ee boilerplate code from metadata. another goal better communication from developer to compiler for optimization and error checking. previously generation was achieved via xdoclet or custom tools like ejbgen v۲. using javadoc comments as input. but programming in javadoc is unchecked and syntactically limited. annotations are a solution. jsr ۱۷۵ introduced annotations into java ۵ in ۲ ۴ other goals also java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. agenda introduction how are annotations used how do annotations fit into the language what’s on the horizon q a introduction is what’s happening right now. no separate slide. who i am the agenda the goals of the talk a broad introduction to annotations in java . java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. how are annotations used there are use cases throughout the development cycle capabilities and challenges different at each point many ways to read and act upon an annotation human readable in source code built in support in ide annotation processing api jsr ۲۶۹ during compilation class file bytecode readers bcel reflection at runtime edit compile deploy classload run java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. annotations as fancy comments annotations as standardized comments – e.g. @deprecated versus don’t use this any more harder to mis spell easier to search and less ambiguous. defined entities @deprecated in javadoc are pretty good but @depracated in javadoc fails silently. no programmatic access to the annotation implied in this case it’s just there for humans to read. edit compile deploy classload run not very compelling don’t know many people who do this in real life. java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. using annotations with ide support annotations let you tell the compiler ide what you mean in more detail than the raw code will support. integrity analysis e.g. @nonnull in intellij requires proprietary support built into the compiler ide semantic error checking e.g. only one method in an entitybean should be a primary key. may be implemented with an annotation processor edit compile deploy classload run java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. annotation processing at compile time generate additional java types and artifacts j۲ee rpc stubs localhome interfaces deployment descriptors practical examples ejb jax ws not well suited to composite files message.properties web info.xml because of incremental compilation can make composites in separate build step or during deploy edit compile deploy classload run java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. processing annotations on class files bytecode enhancement based on annotations libraries like bcel to read and write class files can modify existing class – which apt doesn’t let you do. practical example resin app server @transactionattribute required inserts transaction locking code around calls that need to be atomic. other possibilities load class differently depending on threading requirements api version requirements etc. edit compile deploy classload run resin is an open source app server java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. reading annotations at runtime junit ۴ junit ۴ test runner finds annotated classes instantiates them executes the annotated methods test case classes don’t need to subclass testcase edit compile deploy classload run @test expected indexoutofboundsexception.class public void empty list l new arraylist object l.get should throw exception example stolen from junit ۴ cookbook java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. reading annotations at runtime hibernate constraint validation in app server example hibernate data persistence framework @notempty @length min ۲ max ۵ public string getlastname return runtime exception edit compile deploy classload run i’ll discuss how to read annotations at runtime after a bit of language background. hibernate is a data persistence framework java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. agenda introduction how are annotations used how do annotations fit into the language what’s on the horizon q a java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. declaring a marker annotation type package p @interface myanno declaration is like declaring a normal type. but notice the ‘@’ in the declaration a marker annotation is the simplest type of annotation no member values – just presence or absence of the annotation import p.myanno @myanno class myclass declaration myanno.java usage myclass.java java annotations ۲ ۸ by bea systems inc. made available under the epl v۱. declaring a full annotation type a full or normal annotation is one with …

کلمات کلیدی پرکاربرد در این اسلاید پاورپوینت: annotation, ., java, inc., bea, system, make, available, epl, v۱, class, deploy,

این فایل پاورپوینت شامل 35 اسلاید و به زبان انگلیسی و حجم آن 0.43 مگا بایت است. نوع قالب فایل ppt بوده که با این لینک قابل دانلود است. این مطلب برگرفته از سایت زیر است و مسئولیت انتشار آن با منبع اصلی می باشد که در تاریخ 2019/05/17 06:16:29 استخراج شده است.

https://www.eclipse.org/jdt/apt/eclipsecon2008.ppt

  • جهت آموزش های پاورپوینت بر روی اینجا کلیک کنید.
  • جهت دانلود رایگان قالب های حرفه ای پاورپوینت بر روی اینجا کلیک کنید.

رفتن به مشاهده اسلاید در بالای صفحه


پاسخی بگذارید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *