Examples of Proxy


Examples of org.apache.openjpa.util.Proxy

            case JavaTypes.COLLECTION:
            case JavaTypes.MAP:
            case JavaTypes.DATE:
            case JavaTypes.OBJECT:
                if (objval instanceof Proxy) {
                    Proxy proxy = (Proxy) objval;
                    proxy.setOwner(null, -1);
                    if (proxy.getChangeTracker() != null)
                        proxy.getChangeTracker().stopTracking();
                }
        }
    }
View Full Code Here

Examples of org.eclipse.aether.repository.Proxy

        return result;
    }

    private static Proxy toProxy( org.apache.maven.repository.Proxy proxy )
    {
        Proxy result = null;
        if ( proxy != null )
        {
            AuthenticationBuilder authBuilder = new AuthenticationBuilder();
            authBuilder.addUsername( proxy.getUserName() ).addPassword( proxy.getPassword() );
            result = new Proxy( proxy.getProtocol(), proxy.getHost(), proxy.getPort(), authBuilder.build() );
        }
        return result;
    }
View Full Code Here

Examples of org.eclipse.ecf.core.util.Proxy

        int proxyPort = ((pPort != null)?Integer.parseInt(pPort):9808);

        String username = System.getProperty(this.getClass().getName()+".proxyUsername");
        if (username != null) {
          String password = System.getProperty(this.getClass().getName()+".proxyPassword");
          retrieveAdapter.setProxy(new Proxy(Proxy.Type.HTTP, new ProxyAddress(
          proxyName, proxyPort), username, password) );
        } else {
          retrieveAdapter.setProxy(new Proxy(Proxy.Type.HTTP, new ProxyAddress(
              proxyName, proxyPort)));
        }
      }
    } catch (Exception e) {
      // Print out problems to system err
View Full Code Here

Examples of org.exolab.jms.net.proxy.Proxy

     * @param uri the connection URI
     * @return a proxy for the object
     * @throws ExportException if the proxy can't be constructed
     */
    public synchronized Proxy addProxy(URI uri) throws ExportException {
        Proxy proxy;
        try {
            Delegate delegate = new UnicastDelegate(_objID, uri.toString());
            Constructor constructor = _proxyClass.getConstructor(PROXY_ARGS);
            proxy = (Proxy) constructor.newInstance(new Object[]{delegate});
        } catch (InvocationTargetException exception) {
View Full Code Here

Examples of org.hibernate.annotations.Proxy

      persistentClass = new UnionSubclass( superEntity );
    }
    else {
      throw new AssertionFailure( "Unknown inheritance type: " + inheritanceState.type );
    }
    Proxy proxyAnn = annotatedClass.getAnnotation( Proxy.class );
    BatchSize sizeAnn = annotatedClass.getAnnotation( BatchSize.class );
    Where whereAnn = annotatedClass.getAnnotation( Where.class );
    Entity entityAnn = annotatedClass.getAnnotation( Entity.class );
    org.hibernate.annotations.Entity hibEntityAnn = annotatedClass.getAnnotation(
        org.hibernate.annotations.Entity.class
View Full Code Here

Examples of org.hyperic.sigar.test.Proxy

                        proxy = SigarProxyCache.newInstance(sigar, 30 * 1000);
                    }
                }

                String args[] = {"leaktest", "50"};
                Proxy cmdProxy = new Proxy(sigar, proxy);

                PrintStream ps = new PrintStream(new ByteArrayOutputStream());

                if (verbose) {
                    cmdProxy.setVerbose(true);
                    cmdProxy.setLeakVerbose(true);
                    cmdProxy.run(args);
                }
                else {
                    cmdProxy.setOutputStream(ps);
                }
            } catch (SigarException e) {
                this.ex = e;
            }
        }
View Full Code Here

Examples of org.jboss.aop.proxy.Proxy

         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

Examples of org.jboss.forge.furnace.proxy.javassist.util.proxy.Proxy

   }

   @Test
   public void testIsProxyType() throws Exception
   {
      Assert.assertTrue(Proxies.isProxyType(new Proxy()
      {
         @Override
         public void setHandler(MethodHandler mi)
         {
         }
View Full Code Here

Examples of org.jboss.seam.intercept.Proxy

      if (!interceptionEnabled) {
         initialize(bean);
         callPostConstructMethod(bean);
      } else {
         if (bean instanceof Proxy) {
             Proxy proxy = (Proxy) bean;
             JavaBeanInterceptor interceptor = (JavaBeanInterceptor) proxy.writeReplace();

             interceptor.postConstruct();
         }
      }
   }
View Full Code Here

Examples of org.jugile.util.Proxy

    for (E o : this) if (!isTrue(o,mname)) res.add(o);
    return res;
  }
 
  private boolean isTrue(Object item, String mname) {
    Proxy p = new Proxy(item);
    return isTrue(p.call(mname));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.