Examples of proxy()


Examples of jfun.yan.Component.proxy()

  }
  public Component eval(){
    final Component cc = getComponent();
    checkMandatory("component", cc);
    if(itfs!=null)
      return cc.proxy(itfs);
    else
      return cc.proxy();
  }
}
View Full Code Here

Examples of org.apache.karaf.cave.server.api.CaveRepository.proxy()

    public void proxyRepository(String name, String url, boolean generateObr, String filter) throws Exception {
        if (getCaveRepositoryService().getRepository(name) != null) {
            throw new IllegalArgumentException("Cave repository " + name + " doesn't exist");
        }
        CaveRepository repository = getCaveRepositoryService().getRepository(name);
        repository.proxy(new URL(url), filter);
        if (generateObr) {
            getCaveRepositoryService().install(name);
        }
    }
View Full Code Here

Examples of org.apache.shiro.web.filter.mgt.FilterChainManager.proxy()

            return null;
        }

        for (String pathPattern : filterChainManager.getChainNames()) {
            if (pathMatches(pathPattern, request))
                return filterChainManager.proxy(originalChain, pathPattern);
        }

        return null;
    }
View Full Code Here

Examples of org.apache.shiro.web.filter.mgt.NamedFilterList.proxy()

    public FilterChain proxy(FilterChain original, List<String> chainNames) {
        NamedFilterList configured = new SimpleNamedFilterList(chainNames.toString());
        for(String chainName : chainNames) {
            configured.addAll(getChain(chainName));
        }
        return configured.proxy(original);
    }

    private void applyLoginUrlIfNecessary(Filter filter) {
        String loginUrl = getLoginUrl();
        if (StringUtils.hasText(loginUrl) && (filter instanceof AccessControlFilter)) {
View Full Code Here

Examples of org.apache.shiro.web.filter.mgt.SimpleNamedFilterList.proxy()

    public FilterChain proxy(FilterChain original, List<String> chainNames) {
        NamedFilterList configured = new SimpleNamedFilterList(chainNames.toString());
        for(String chainName : chainNames) {
            configured.addAll(getChain(chainName));
        }
        return configured.proxy(original);
    }

    private void applyLoginUrlIfNecessary(Filter filter) {
        String loginUrl = getLoginUrl();
        if (StringUtils.hasText(loginUrl) && (filter instanceof AccessControlFilter)) {
View Full Code Here

Examples of org.codehaus.groovy.runtime.ProxyGeneratorAdapter.proxy()

            );
            Object phase = map.get("phase");
            if (!(phase instanceof CompilePhase)) {
                phase = CompilePhase.valueOf(phase.toString());
            }
            return adapter.proxy(map, phase);
        }
        return node;
    }
}
View Full Code Here

Examples of org.glassfish.hk2.utilities.ActiveDescriptorBuilder.proxy()

            for (Type contract : contracts) {
                builder.to(contract);
            }

            if (proxiable != null) {
                builder.proxy(proxiable);
            }
           
            if (proxyForSameScope != null) {
                builder.proxyForSameScope(proxyForSameScope);
            }
View Full Code Here

Examples of org.hotswap.agent.plugin.hibernate.proxy.EntityManagerFactoryProxy.proxy()

        if (wrappedPersistenceUnitNames.contains(info.getPersistenceUnitName()))
            return original;
        wrappedPersistenceUnitNames.add(info.getPersistenceUnitName());

        EntityManagerFactoryProxy wrapper = EntityManagerFactoryProxy.getWrapper(info.getPersistenceUnitName());
        EntityManagerFactory proxy = wrapper.proxy(original, info.getPersistenceUnitName(), info, properties);

        initPlugin(original);

        LOGGER.debug("Returning container EntityManager proxy {} instead of EntityManager {}", proxy.getClass(), original);
        return proxy;
View Full Code Here

Examples of org.jboss.resteasy.client.jaxrs.ResteasyWebTarget.proxy()

    Client client = ClientBuilder.newBuilder().build();
    WebTarget target = client.target( dataStore.getDatabaseIdentifier().getDatabaseUri() );
    ResteasyWebTarget rtarget = (ResteasyWebTarget) target;

    return rtarget.proxy( DatabaseTestClient.class );
  }

  @Override
  public GlobalContext<?, ?> configureDatastore(OgmConfiguration configuration) {
    return configuration.configureOptionsFor( CouchDB.class );
View Full Code Here

Examples of org.jmock.Mock.proxy()

    public void testOneSubscriberReceivesAMessage() {
        // setup
        Mock mockSubscriber = new Mock(Subscriber.class);
        Publisher publisher = new Publisher();
        publisher.add((Subscriber) mockSubscriber.proxy());

        Message message = new Message();

        // expectations
        mockSubscriber.expect("receive", message);
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.