Package org.jboss.aop.proxy

Examples of org.jboss.aop.proxy.ClassProxy


/*     */
/*     */   public static void unregisterClusteredObject(Object object)
/*     */   {
/*     */     try
/*     */     {
/* 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);
View Full Code Here


/*    */   {
/* 41 */     AsynchMixin mixin = new AsynchMixin();
/* 42 */     AsynchProxyInterceptor interceptor = new AsynchProxyInterceptor(mixin);
/* 43 */     Class[] mixInterfaces = { AsynchProvider.class };
/* 44 */     ProxyMixin[] mixins = { new ProxyMixin(mixin, mixInterfaces) };
/* 45 */     ClassProxy proxy = ClassProxyFactory.newInstance(clazz, mixins);
/* 46 */     proxy._getInstanceAdvisor().insertInterceptor(interceptor);
/* 47 */     Remoting.makeRemotable(proxy, locator, objectId);
/* 48 */     return proxy;
/*    */   }
View Full Code Here

    * Registers this Container with Remoting / AOP Dispatcher
    */
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

    */
   @Override
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

    */
   @Override
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

    * Registers this Container with Remoting / AOP Dispatcher
    */
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

    */
   @Override
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

         throw new NotFoundInDispatcherException(oid);
      }

      if (target instanceof ClassProxy)
      {
         ClassProxy proxy = (ClassProxy) target;
         return proxy._dynamicInvoke(invocation);
      }
      else if (target instanceof Proxy)
      {
         Proxy proxy = (Proxy) target;
         return proxy._dynamicInvoke(invocation);
      }
      else if (target instanceof Advised)
      {
         Advisor advisor = ((Advised) target)._getAdvisor();
         return advisor.dynamicInvoke(target, invocation);
View Full Code Here

   }

   public static ClassProxy createRemoteProxy(Object objectId, Class clazz, InvokerLocator locator)
      throws Exception
   {
      ClassProxy proxy = ClassProxyFactory.newInstance(clazz);
      makeRemotable(proxy, locator, objectId);

      return proxy;
   }
View Full Code Here

TOP

Related Classes of org.jboss.aop.proxy.ClassProxy

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.