#Proxies in Java - Dynamic Proxy Springboot
1 messages · Page 1 of 1 (latest)
<@&1004656351647117403> please have a look, thanks.
Pretty much. I don't understand things from ClassLoader and below ... like so many diff functions and things just came in which make very limited sense even though I've asked chatgpt to explain it multiple times
Proxies in Java in Spring have many features like
Aspect-Oriented Programming (AOP)
Transaction Management
Lazy Initialization
Caching
Asynchronous Execution
we also have different type of dynamic proxies in spring
JDK Dynamic Proxies
CGLIB Proxies
Any spcific part in it which is not clear to you
person.java
public interface Person{
public void introduce (String name);
public void sayAge (int age);
public void sayWhereFrom (String city, String country)
}
And then there's a Man.java which is just an implementation of this interface
invocationHandler.java
public class invokeHandler ImvocationHandler{
private Person person;
public invokeHandler(Person person){
this.person = person;
}
@Override
public Object inboke (Object proxy, Method method, Object[] args{
sysout("Hi");
return null;
}
}
Detected code, here are some useful tools:
person.javapublic interface Person {
public void introduce(String name);
public void sayAge(int age);
public void sayWhereFrom(String city, String country) }
Rightttt so I was told that what I'm learning is going to be essential for AOP
Not sure what that is ... but rn I was just learning raw implementation of dynamic proxy in spring ...
However, couldn't understand like where things are coming from
I'm not sure what AOP is though. Right now it was just making a basic proxy to understand like ... it's basically something that wraps itself around original class and runs before running it
First I suggets you go through AOP concept and its usage in spring
It's like ... Nginx which I understood - which is like a load balancer + firewall
Oh okay. It's the next chapter
NGINX is a server
Should I come back after doing AOP and then ask if I'm still confused?
Okay nvm
sure anytime
Okay thank you. If you're online for a bit
I'll try to finish AOP and then come back and ask if I'm still confused
You are in which timezone?
I'm in AEST - Australian timezone
But I'm awake the whole night today
Have uni assignments + want to gain confidence in understand systems like this
So will be studying Springboot for a while
cool no issue
Btw which timezone are you in?
IST
Oh so its 5PM there
I'm actually originally indian too and understand hindi
So I was watching this video from lovepreet singh -
Complete Java Full Stack: AWS, Spring Boot, Microservices
This course contains three parts that can be found in playlist:- https://www.youtube.com/playlist?list=PL7CBVLpg0zqf_ggig9cOr72oZNGf9RZmZ
=====================
This course is designed for the people:-
📌 who are not able to make projects on their own
📌 who want to prepare for fulls...
And he explains proxies in 5:12:00 to 6:00:00
Is it okay if I watch these with you sometime when you're free in maybe today or next week?
Are these concepts mostly intermediate or advanced type?
Are you free anytime this saturday/sunday?
As in?
When you work on Spring project you understanding AOP usage and its importance
Oh okay and these AOP usage concepts
Are used by more advanced topics?
Is that what you meant?
Yes when I work on enterprise applications I use