@Override @Nullable public Object getAspectCreationMutex() { return this.maaif.getAspectCreationMutex(); }
@Override public Object getAspectInstance() { Object aspectInstance = this.materialized; if (aspectInstance == null) { Object mutex = this.maaif.getAspectCreationMutex(); if (mutex == null) { aspectInstance = this.maaif.getAspectInstance(); this.materialized = aspectInstance; } else { synchronized (mutex) { aspectInstance = this.materialized; if (aspectInstance == null) { aspectInstance = this.maaif.getAspectInstance(); this.materialized = aspectInstance; } } } } return aspectInstance; }
@Override public Object getAspectCreationMutex() { return this.maaif.getAspectCreationMutex(); }
@Override @Nullable public Object getAspectCreationMutex() { return this.maaif.getAspectCreationMutex(); }
@Override public Object getAspectInstance() { if (this.materialized == null) { Object mutex = this.maaif.getAspectCreationMutex(); if (mutex == null) { this.materialized = this.maaif.getAspectInstance(); } else { synchronized (mutex) { if (this.materialized == null) { this.materialized = this.maaif.getAspectInstance(); } } } } return this.materialized; }
@Override public Object getAspectInstance() { Object aspectInstance = this.materialized; if (aspectInstance == null) { Object mutex = this.maaif.getAspectCreationMutex(); if (mutex == null) { aspectInstance = this.maaif.getAspectInstance(); this.materialized = aspectInstance; } else { synchronized (mutex) { aspectInstance = this.materialized; if (aspectInstance == null) { aspectInstance = this.maaif.getAspectInstance(); this.materialized = aspectInstance; } } } } return aspectInstance; }