Java Course Day 16

Post on 01-Nov-2014

328 views 1 download

Tags:

description

 

Transcript of Java Course Day 16

Day 16

Annotations

@Override

@Override@SuppressWarnings

@Override@SuppressWarnings@Deprecated

How to create Annotation?

@Target

@Target@Retention

@Target@Retention@Inherited

@Target@Retention@Inherited@Documented

Reflection

Proxy

“The remote proxy can shield the fact that theimplementation resides in another address space.”

“The virtual proxy can perform optimizations—for example, by creating objects on demand.”

“The remote proxy can shield the fact that theimplementation resides in another address space.”

Decorator

“You want to transparently and dynamically addresponsibilities to objects without affecting other objects.”

“You want to transparently and dynamically addresponsibilities to objects without affecting other objects.”

“You want to add responsibilities to an object that youmay want to change in the future.”

“You want to transparently and dynamically addresponsibilities to objects without affecting other objects.”

“You want to add responsibilities to an object that youmay want to change in the future.”

“Extending functionality by subclassing is no longerpractical.”