Package org.jboss.aop.metadata

Examples of org.jboss.aop.metadata.SimpleMetaData$MetaDataValue


/*  77 */     return this.responseContextInfo.get(key);
/*     */   }
/*     */
/*     */   public SimpleMetaData getMetaData()
/*     */   {
/*  85 */     if (this.metadata == null) this.metadata = new SimpleMetaData();
/*  86 */     return this.metadata;
/*     */   }
View Full Code Here


/*     */   }
/*     */
/*     */   public GUID tag(InstanceAdvised advised)
/*     */   {
/*  67 */     GUID guid = new GUID();
/*  68 */     SimpleMetaData metaData = advised._getInstanceAdvisor().getMetaData();
/*  69 */     metaData.addMetaData("VERSION_MANAGER", "VERSION_ID", guid);
/*  70 */     return guid;
/*     */   }
View Full Code Here

/*  70 */     return guid;
/*     */   }
/*     */
/*     */   public void untag(InstanceAdvised advised)
/*     */   {
/*  75 */     SimpleMetaData metaData = advised._getInstanceAdvisor().getMetaData();
/*  76 */     metaData.removeMetaData("VERSION_MANAGER", "VERSION_ID");
/*     */   }
View Full Code Here

/*     */
/* 152 */       return obj;
/*     */     }
/*     */
/* 155 */     Advised advised = (Advised)obj;
/* 156 */     SimpleMetaData metaData = advised._getInstanceAdvisor().getMetaData();
/*     */     GUID guid;
/* 158 */     synchronized (metaData)
/*     */     {
/* 160 */       if (isVersioned(advised)) return obj;
/* 161 */       guid = tag(advised);
View Full Code Here

/*     */
/*     */   public void addVersioning(DistributedPOJOState manager, Advised advised)
/*     */   {
/* 221 */     StateManager.setStateManager(advised, manager);
/* 222 */     StateChangeInterceptor interceptor = new StateChangeInterceptor(manager);
/* 223 */     SimpleMetaData metaData = advised._getInstanceAdvisor().getMetaData();
/* 224 */     metaData.addMetaData("VERSION_MANAGER", "VERSION_ID", manager.getGUID());
/* 225 */     advised._getInstanceAdvisor().appendInterceptor(interceptor);
/*     */   }
View Full Code Here

/*     */   public ClassProxy addListVersioning(List list, DistributedListState manager)
/*     */     throws Exception
/*     */   {
/* 234 */     ClassProxy proxy = ClassProxyFactory.newInstance(list.getClass());
/* 235 */     GUID guid = manager.getGUID();
/* 236 */     SimpleMetaData metaData = proxy._getInstanceAdvisor().getMetaData();
/* 237 */     metaData.addMetaData("VERSION_MANAGER", "VERSION_ID", guid);
/* 238 */     StateManager.setStateManager(proxy, manager);
/* 239 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/* 240 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/* 241 */     return proxy;
/*     */   }
View Full Code Here

/*     */   public ClassProxy addMapVersioning(Map map, DistributedMapState manager)
/*     */     throws Exception
/*     */   {
/* 250 */     ClassProxy proxy = ClassProxyFactory.newInstance(map.getClass());
/* 251 */     GUID guid = manager.getGUID();
/* 252 */     SimpleMetaData metaData = proxy._getInstanceAdvisor().getMetaData();
/* 253 */     metaData.addMetaData("VERSION_MANAGER", "VERSION_ID", guid);
/* 254 */     StateManager.setStateManager(proxy, manager);
/* 255 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/* 256 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/* 257 */     return proxy;
/*     */   }
View Full Code Here

/*     */   public ClassProxy addSetVersioning(Set set, DistributedSetState manager)
/*     */     throws Exception
/*     */   {
/* 266 */     ClassProxy proxy = ClassProxyFactory.newInstance(set.getClass());
/* 267 */     GUID guid = manager.getGUID();
/* 268 */     SimpleMetaData metaData = proxy._getInstanceAdvisor().getMetaData();
/* 269 */     metaData.addMetaData("VERSION_MANAGER", "VERSION_ID", guid);
/* 270 */     StateManager.setStateManager(proxy, manager);
/* 271 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/* 272 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/* 273 */     return proxy;
/*     */   }
View Full Code Here

/* 43 */   public String getName() { return "MergeMetaDataInterceptor"; }
/*    */
/*    */   protected SimpleMetaData merge(Invocation invocation, MetaDataResolver resolver, SimpleMetaData merged)
/*    */   {
/* 47 */     if (resolver == null) return merged;
/* 48 */     SimpleMetaData metadata = resolver.getAllMetaData(invocation);
/* 49 */     if (metadata == null) return merged;
/* 50 */     if (merged == null)
/*    */     {
/* 52 */       merged = new SimpleMetaData();
/*    */     }
/* 54 */     merged.mergeIn(metadata);
/* 55 */     return merged;
/*    */   }
View Full Code Here

/* 55 */     return merged;
/*    */   }
/*    */
/*    */   public Object invoke(Invocation invocation) throws Throwable
/*    */   {
/* 60 */     SimpleMetaData merged = null;
/* 61 */     merged = merge(invocation, ((InvocationBase)invocation).getInstanceResolver(), merged);
/*    */
/* 63 */     MetaDataResolver threadMetaData = ThreadMetaData.instance().getAllMetaData(invocation);
/* 64 */     merged = merge(invocation, threadMetaData, merged);
/*    */
/* 66 */     if (merged != null)
/*    */     {
/* 69 */       merged.mergeIn(invocation.getMetaData());
/*    */
/* 72 */       invocation.setMetaData(merged);
/*    */     }
/* 74 */     return invocation.invokeNext();
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.aop.metadata.SimpleMetaData$MetaDataValue

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.