New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Virtual Proxy pattern #2940
Labels
Comments
Hi, can you assign it to me? |
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 12, 2024
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 12, 2024
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 12, 2024
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 12, 2024
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 12, 2024
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 14, 2024
Adelechka
added a commit
to Adelechka/java-design-patterns
that referenced
this issue
May 14, 2024
Merged
iluwatar
pushed a commit
that referenced
this issue
May 15, 2024
* feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern, tests added * feature: Implement Virtual Proxy pattern #2940 * feature: Implement Virtual Proxy pattern #2940 * refactoring: proxy/pom.xml
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Virtual Proxy design pattern is used to delay the creation and loading of expensive objects until their actual use, thereby reducing resource consumption. Here are the main points to consider when implementing this pattern:
Proxy Class:
Real Subject (Expensive Object):
Deferred Initialization:
Transparent Usage:
Efficiency Considerations:
By encapsulating resource management in this way, the Virtual Proxy pattern makes expensive operations more efficient and ensures that unnecessary resource usage is avoided.
Acceptance Criteria:
Implementation: The Virtual Proxy pattern is implemented following the project's contribution guidelines and includes an interface and a proxy class to encapsulate the actual object.
Documentation: The implementation is documented with clear examples, diagrams, and explanations in the README.md file.
Tests: Comprehensive unit tests validate the behavior of the proxy in controlling object creation and access.
The text was updated successfully, but these errors were encountered: