Package org.jboss.cache.pojo

Examples of org.jboss.cache.pojo.PojoCacheException


   void removeRefFqn(Fqn fqn) throws CacheException
   {
      PojoInstance pojoInstance = getPojoInstance(fqn);
      if (pojoInstance == null)
         throw new PojoCacheException("InternalDelegate.getInternalFqn(): null pojoReference.");

      pojoInstance.removeInternalFqn();
      put(fqn, PojoInstance.KEY, pojoInstance);
   }
View Full Code Here


            AspectManager.instance().addBinding(bindingm);
         }
      }
      catch (ParseException e)
      {
         throw new PojoCacheException("PojoUtil._attachInterceptor(): can't parse the field binding: "
                 + e);
      }

      return result;
   }
View Full Code Here

         {
            ClassProxyFactory.newInstance(clazz);
         }
         catch (Exception e)
         {
            throw new PojoCacheException(e);
         }
         result = ClassProxyFactory.getMethodMap(clazz.getName());
      }
      return result;
   }
View Full Code Here

      {
         tostring = Object.class.getDeclaredMethod("toString", new Class[0]);
      }
      catch (NoSuchMethodException e)
      {
         throw new PojoCacheException(e);
      }

      Map managedMethods = new HashMap();
      try
      {
View Full Code Here

               if (log.isTraceEnabled())
                  log.trace("invoke(): non-managed method: " + method.toString());
               Object target = methodInvocation.getTargetObject();
               if (target == null)
               {
                  throw new PojoCacheException("CollectionInterceptorUtil.invoke(): targetObject is null." +
                          " Can't invoke " + method.toString());
               }
               return method.invoke(target, args);
               //            return method.invoke(interceptor, args);
            }
View Full Code Here

         init(expected, toStart);
      }
      catch (Exception e)
      {
         throw new PojoCacheException("Failed to start " + configStr, e);
      }
   }
View Full Code Here

      {
         cache = (CacheSPI<Object, Object>) DefaultCacheFactory.getInstance().createCache(config, toStart);
      }
      catch (Exception e)
      {
         throw new PojoCacheException("init " + config + " failed", e);
      }

      delegate_ = new PojoCacheDelegate(this);
   }
View Full Code Here

         Object obj = putObject(id, pojo, null);
         return obj;
      }
      catch (CacheException e)
      {
         throw new PojoCacheException("putObject failed " + id, e);
      }
   }
View Full Code Here

         Object obj = putObject(id, pojo, field);
         return obj;
      }
      catch (CacheException e)
      {
         throw new PojoCacheException("putObject failed " + id, e);
      }
   }
View Full Code Here

         Object obj = removeObject(id, field);
         return obj;
      }
      catch (CacheException e)
      {
         throw new PojoCacheException("detach " + id + " failed", e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.pojo.PojoCacheException

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.