Package org.jboss.metatype.spi.values

Examples of org.jboss.metatype.spi.values.MetaValueBuilder


    * @return the meta value
    */
   @SuppressWarnings({"unchecked", "deprecation"})
   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
   {
      MetaValueBuilder builder = null;
      synchronized (builders)
      {
         WeakReference<MetaValueBuilder<?>> weak = builders.get(type.getType());
         if (weak != null)
            builder = weak.get();
      }
      if (builder == null)
         return null;
      MetaValue result = builder.buildMetaValue(metaType, value);
      if (result != null)
         mapping.put(value, result);
     
      return result;
   }
View Full Code Here


    * @return the meta value
    */
   @SuppressWarnings({"unchecked", "deprecation"})
   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
   {
      MetaValueBuilder builder = null;
      synchronized (builders)
      {
         WeakReference<MetaValueBuilder<?>> weak = builders.get(type.getType());
         if (weak != null)
            builder = weak.get();
      }
      if (builder == null)
         return null;
      MetaValue result = builder.buildMetaValue(metaType, value);
      if (result != null)
         mapping.put(value, result);
     
      return result;
   }
View Full Code Here

    * @return the meta value
    */
   @SuppressWarnings("unchecked")
   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
   {
      MetaValueBuilder builder = null;
      synchronized (builders)
      {
         WeakReference<MetaValueBuilder> weak = builders.get(type.getType());
         if (weak != null)
            builder = weak.get();
      }
      if (builder == null)
         return null;
      MetaValue result = builder.buildMetaValue(metaType, value);
      if (result != null)
         mapping.put(value, result);
     
      return result;
   }
View Full Code Here

    * @return the meta value
    */
   @SuppressWarnings({"unchecked", "deprecation"})
   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
   {
      MetaValueBuilder builder = null;
      synchronized (builders)
      {
         WeakReference<MetaValueBuilder<?>> weak = builders.get(type.getType());
         if (weak != null)
            builder = weak.get();
      }
      if (builder == null)
         return null;
      MetaValue result = builder.buildMetaValue(metaType, value);
      if (result != null)
         mapping.put(value, result);
     
      return result;
   }
View Full Code Here

    * @return the meta value
    */
   @SuppressWarnings({"unchecked", "deprecation"})
   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
   {
      MetaValueBuilder builder = null;
      synchronized (builders)
      {
         WeakReference<MetaValueBuilder<?>> weak = builders.get(type.getType());
         if (weak != null)
            builder = weak.get();
      }
      if (builder == null)
         return null;
      MetaValue result = builder.buildMetaValue(metaType, value);
      if (result != null)
         mapping.put(value, result);
     
      return result;
   }
View Full Code Here

/*  993 */     throw new UndeclaredThrowableException(t);
/*      */   }
/*      */
/*      */   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
/*      */   {
/* 1009 */     MetaValueBuilder builder = null;
/* 1010 */     synchronized (this.builders)
/*      */     {
/* 1012 */       WeakReference weak = (WeakReference)this.builders.get(type.getType());
/* 1013 */       if (weak != null)
/* 1014 */         builder = (MetaValueBuilder)weak.get();
/*      */     }
/* 1016 */     if (builder == null)
/* 1017 */       return null;
/* 1018 */     MetaValue result = builder.buildMetaValue(metaType, value);
/* 1019 */     if (result != null) {
/* 1020 */       mapping.put(value, result);
/*      */     }
/* 1022 */     return result;
/*      */   }
View Full Code Here

    * @return the meta value
    */
   @SuppressWarnings("unchecked")
   protected MetaValue isBuilder(MetaType metaType, TypeInfo type, Object value, Map<Object, MetaValue> mapping)
   {
      MetaValueBuilder builder = null;
      synchronized (builders)
      {
         WeakReference<MetaValueBuilder> weak = builders.get(type.getType());
         if (weak != null)
            builder = weak.get();
      }
      if (builder == null)
         return null;
      MetaValue result = builder.buildMetaValue(metaType, value);
      if (result != null)
         mapping.put(value, result);
     
      return result;
   }
View Full Code Here

TOP

Related Classes of org.jboss.metatype.spi.values.MetaValueBuilder

Copyright © 2018 www.massapicom. 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.