Examples of IntrospectorBase


Examples of org.apache.commons.jexl2.internal.introspection.IntrospectorBase

     * <p>If the reference has been collected, this method will recreate the underlying introspector.</p>
     * @return the introspector
     */
    // CSOFF: DoubleCheckedLocking
    protected final IntrospectorBase base() {
        IntrospectorBase intro = ref.get();
        if (intro == null) {
            // double checked locking (fixed by Java 5 memory model).
            synchronized(this) {
                intro = ref.get();
                if (intro == null) {
                    intro = new IntrospectorBase(rlog);
                    ref = new SoftReference<IntrospectorBase>(intro);
                }
            }
        }
        return intro;
View Full Code Here

Examples of org.apache.commons.jexl2.internal.introspection.IntrospectorBase

     * <p>If the reference has been collected, this method will recreate the underlying introspector.</p>
     * @return the introspector
     */
    // CSOFF: DoubleCheckedLocking
    protected final IntrospectorBase base() {
        IntrospectorBase intro = ref.get();
        if (intro == null) {
            // double checked locking is ok (fixed by Java 5 memory model).
            synchronized(this) {
                intro = ref.get();
                if (intro == null) {
                    intro = new IntrospectorBase(rlog);
                    ref = new SoftReference<IntrospectorBase>(intro);
                }
            }
        }
        return intro;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.