예제 #1
0
        public Object GetObject( IAdaptingType key )
        {
            return GetObject( key, key.getDefaultType() );
            /*
            foreach (Object item in cache[key].Values)
                return item;

            throw new Exception("Object not exists in reference cache");
             */
        }
예제 #2
0
        public Object GetObject(IAdaptingType key)
        {
            return(GetObject(key, key.getDefaultType()));

            /*
             * foreach (Object item in cache[key].Values)
             *  return item;
             *
             * throw new Exception("Object not exists in reference cache");
             */
        }
예제 #3
0
 public Type getDefaultType()
 {
     if (mappedType != null)
     {
         return(mappedType);
     }
     else
     {
         return(typedObject.getDefaultType());
     }
 }
예제 #4
0
 public void AddObject(IAdaptingType adapter, Object value)
 {
     AddObject(adapter, adapter.getDefaultType(), value);
 }
예제 #5
0
 public bool HasObject(IAdaptingType key)
 {
     return(HasObject(key, key.getDefaultType()));
     //return cache.ContainsKey(key) && cache.Count > 0;
 }
 public Type getDefaultType()
 {
     return(realType.getDefaultType());
 }
예제 #7
0
 public void AddObject(IAdaptingType adapter, Object value)
 {
     AddObject(adapter, adapter.getDefaultType(), value);
 }
예제 #8
0
 public bool HasObject(IAdaptingType key)
 {
     return HasObject( key, key.getDefaultType() );
     //return cache.ContainsKey(key) && cache.Count > 0;
 }
예제 #9
0
 public Type getDefaultType()
 {
     return(Object != null?Object.getDefaultType() : null);
 }