示例#1
0
 // XWeak impl
 /** The returned XAdapter implementation can be used to keap a
     weak reference to this object.
     
     @return a weak adapter
 */
 public XAdapter queryAdapter()
 {
     if (null == m_adapter)
     {
         lock (this)
         {
             if (null == m_adapter)
                 m_adapter = new WeakAdapter( this );
         }
     }
     return m_adapter;
 }
示例#2
0
        // XWeak impl

        /** The returned XAdapter implementation can be used to keap a
         *  weak reference to this object.
         *
         *  @return a weak adapter
         */
        public XAdapter queryAdapter()
        {
            if (null == m_adapter)
            {
                lock (this)
                {
                    if (null == m_adapter)
                    {
                        m_adapter = new WeakAdapter(this);
                    }
                }
            }
            return(m_adapter);
        }