Top "Lazy-loading" questions

object until the point at which it is needed.

How to solve the "Double-Checked Locking is Broken" Declaration in Java?

I want to implement lazy initialization for multithreading in Java. I have some code of the sort: class Foo { private …

java multithreading concurrency locking lazy-loading
JPA/Hibernate: @ManyToOne and @OneToOne relationships tagged as FetchType.LAZY and optional = false not loading lazily on em.find()?

I have the following entity (only relevant mappings shown): @Entity @Table(name = "PQs") public class PQ implements Serializable { @Id @GeneratedValue(…

java hibernate jpa lazy-loading relationships
Implicitly lazy static members in Swift

I just noticed that static members of Swift structs are implicitly lazy. For instance, this will only call the init …

swift static swift2 lazy-loading static-members
Hibernate lazy-load application design

I tend to use Hibernate in combination with Spring framework and it's declarative transaction demarcation capabilities (e.g., @Transactional). As …

java hibernate spring lazy-loading application-design
Android, how to lazy load images from url and persistently cache them in gallery widget?

I'm implementing an Android gallery widget. I'm asking how to lazy (i.e. in a separate thread) load images from …

android image caching lazy-loading gallery
Lazy load Angular 5 error: $$_lazy_route_resource lazy recursive

I'm using angular cli AoT compilation. When I try to make a lazy load component following this tutorial, I got …

angular angular-cli lazy-loading
Jquery Lazyload callback

I am currently using Jquery Lazy Load and I was wondering if there is a way of making a callback …

jquery jquery-plugins callback lazy-loading jscrollpane
Entity Framework: I set the foreign key, SaveChanges then access the navigation property, but it doesn't load the related entity. Why not?

I am using this Entity class with Entity Framework 5 Code First: public class Survey { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ID { …

ef-code-first lazy-loading entity-framework-5
Post-loading : check if an image is in the browser cache

Short version question : Is there navigator.mozIsLocallyAvailable equivalent function that works on all browsers, or an alternative? Long version :) Hi, …

javascript jquery caching lazy-loading
lazy function definitions in scala

I've been learning scala and I gotta say that it's a really cool language. I especially like its pattern matching …

scala design-patterns lazy-loading lazy-evaluation lazy-initialization