Package org.jboss.aop

Examples of org.jboss.aop.InstanceAdvised


      {
         ClassProxy proxy = (ClassProxy) object;
         InstanceAdvisor advisor = proxy._getInstanceAdvisor();

         String oid = (String) advisor.getMetaData().getMetaData(Dispatcher.DISPATCHER, Dispatcher.OID);
         InstanceAdvised registeredObject = (InstanceAdvised) Dispatcher.singleton.getRegistered(oid);
         if (registeredObject == null) throw new NotRegisteredException(oid.toString() + " is not registered");
         Dispatcher.singleton.unregisterTarget(oid);

         advisor = registeredObject._getInstanceAdvisor();
         Map families = (Map) advisor.getMetaData().getMetaData(CLUSTERED_REMOTING, CLUSTER_FAMILIES);
         Iterator it = families.values().iterator();
         while (it.hasNext())
         {
            HATarget target = (HATarget) it.next();
View Full Code Here


  
   protected void setupRemoteFuture(MethodInvocation invocation, RemotableFuture future, InvokerLocator locator)throws Exception
   {
      GUID futureGUID = new GUID();
      Dispatcher.singleton.registerTarget(futureGUID, future);
      InstanceAdvised ia = (generateProxy()) ?
            ProxyFactory.createInterfaceProxy(futureClassGUID, Future.class.getClassLoader(), futureIntf) :
               (InstanceAdvised)FutureInvocationHandler.createFutureProxy(futureClassGUID, Future.class.getClassLoader(), futureDynamicIntf);
      Remoting.makeRemotable(ia, locator, futureGUID);
      future.setRemoteObjectID(futureGUID);
      invocation.addResponseAttachment(FUTURE, ia);
View Full Code Here

      {
         ClassProxy proxy = (ClassProxy) object;
         InstanceAdvisor advisor = proxy._getInstanceAdvisor();

         String oid = (String) advisor.getMetaData().getMetaData(Dispatcher.DISPATCHER, Dispatcher.OID);
         InstanceAdvised registeredObject = (InstanceAdvised) Dispatcher.singleton.getRegistered(oid);
         if (registeredObject == null) throw new NotRegisteredException(oid.toString() + " is not registered");
         Dispatcher.singleton.unregisterTarget(oid);

         advisor = registeredObject._getInstanceAdvisor();
         Map families = (Map) advisor.getMetaData().getMetaData(CLUSTERED_REMOTING, CLUSTER_FAMILIES);
         Iterator it = families.values().iterator();
         while (it.hasNext())
         {
            HATarget target = (HATarget) it.next();
View Full Code Here

   }
   public void setValue(Object newVal)
   {
      if (newVal instanceof InstanceAdvised)
      {
         InstanceAdvised advised = (InstanceAdvised)newVal;
         GUID guid = VersionManager.getGUID(advised);
         if (guid != null)
         {
            // we are versioned
            val = new VersionReference(guid, advised);
View Full Code Here

   }

   public boolean isVersioned(Object obj)
   {
      if (!(obj instanceof InstanceAdvised)) return false;
      InstanceAdvised advised = (InstanceAdvised)obj;
      return getGUID(advised) != null;
   }
View Full Code Here

                  fieldVal = new VersionReference(getGUID(fieldAdvised), fieldAdvised);
               }
               else if (fieldVal instanceof List)
               {
                  List list = (List)fieldVal;
                  InstanceAdvised instanceAdvised = (InstanceAdvised)makeVersionedList(list, newObjects);
                  fieldVal = new VersionReference(getGUID(instanceAdvised), instanceAdvised);
               }
               else if (fieldVal instanceof Map)
               {
                  Map map = (Map)fieldVal;
                  InstanceAdvised instanceAdvised = (InstanceAdvised)makeVersionedMap(map, newObjects);
                  fieldVal = new VersionReference(getGUID(instanceAdvised), instanceAdvised);
               }
               else if (fieldVal instanceof Set)
               {
                  Set set = (Set)fieldVal;
                  InstanceAdvised instanceAdvised = (InstanceAdvised)makeVersionedSet(set, newObjects);
                  fieldVal = new VersionReference(getGUID(instanceAdvised), instanceAdvised);
               }
            }
            manager.fieldMap.put(new Integer(i), new DistributedFieldUpdate(fieldVal, 0, i));
         }
View Full Code Here

/*     */   }
/*     */
/*     */   public boolean isVersioned(Object obj)
/*     */   {
/*  60 */     if (!(obj instanceof InstanceAdvised)) return false;
/*  61 */     InstanceAdvised advised = (InstanceAdvised)obj;
/*  62 */     return getGUID(advised) != null;
/*     */   }
View Full Code Here

/* 183 */               fieldVal = new VersionReference(getGUID(fieldAdvised), fieldAdvised);
/*     */             }
/* 185 */             else if ((fieldVal instanceof List))
/*     */             {
/* 187 */               List list = (List)fieldVal;
/* 188 */               InstanceAdvised instanceAdvised = (InstanceAdvised)makeVersionedList(list, newObjects);
/* 189 */               fieldVal = new VersionReference(getGUID(instanceAdvised), instanceAdvised);
/*     */             }
/* 191 */             else if ((fieldVal instanceof Map))
/*     */             {
/* 193 */               Map map = (Map)fieldVal;
/* 194 */               InstanceAdvised instanceAdvised = (InstanceAdvised)makeVersionedMap(map, newObjects);
/* 195 */               fieldVal = new VersionReference(getGUID(instanceAdvised), instanceAdvised);
/*     */             }
/* 197 */             else if ((fieldVal instanceof Set))
/*     */             {
/* 199 */               Set set = (Set)fieldVal;
/* 200 */               InstanceAdvised instanceAdvised = (InstanceAdvised)makeVersionedSet(set, newObjects);
/* 201 */               fieldVal = new VersionReference(getGUID(instanceAdvised), instanceAdvised);
/*     */             }
/*     */           }
/* 204 */           manager.fieldMap.put(new Integer(i), new DistributedFieldUpdate(fieldVal, 0L, i));
/*     */         }
View Full Code Here

/*    */   }
/*    */
/*    */   public void setValue(Object newVal) {
/* 68 */     if ((newVal instanceof InstanceAdvised))
/*    */     {
/* 70 */       InstanceAdvised advised = (InstanceAdvised)newVal;
/* 71 */       GUID guid = VersionManager.getGUID(advised);
/* 72 */       if (guid != null)
/*    */       {
/* 75 */         this.val = new VersionReference(guid, advised);
/* 76 */         return;
View Full Code Here

/*     */     {
/* 137 */       ClassProxy proxy = (ClassProxy)object;
/* 138 */       InstanceAdvisor advisor = proxy._getInstanceAdvisor();
/*     */
/* 140 */       String oid = (String)advisor.getMetaData().getMetaData("DISPATCHER", "OID");
/* 141 */       InstanceAdvised registeredObject = (InstanceAdvised)Dispatcher.singleton.getRegistered(oid);
/* 142 */       if (registeredObject == null) throw new NotRegisteredException(oid.toString() + " is not registered");
/* 143 */       Dispatcher.singleton.unregisterTarget(oid);
/*     */
/* 145 */       advisor = registeredObject._getInstanceAdvisor();
/* 146 */       Map families = (Map)advisor.getMetaData().getMetaData("CLUSTERED_REMOTING", "CLUSTER_FAMILIES");
/* 147 */       Iterator it = families.values().iterator();
/* 148 */       while (it.hasNext())
/*     */       {
/* 150 */         HATarget target = (HATarget)it.next();
View Full Code Here

TOP

Related Classes of org.jboss.aop.InstanceAdvised

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.