Examples of Caller


Examples of com.google.gwt.dev.jjs.test.overrides.package1.Caller

   * Tests complex overriding patterns involving package private methods.
   * <p>
   * Test for issue 8654.
   */
  public void testOverride() {
    Caller aCaller = new Caller();
    assertEquals("SomeParentParent", aCaller.callPackagePrivatem(new SomeParentParent()));
    assertEquals("SomeParent", aCaller.callPackagePrivatem(new SomeParent()));
    assertEquals("SomeParent", aCaller.callPackagePrivatem(
        new SomeSubClassInAnotherPackage()));

    assertEquals("SomeSubClassInAnotherPackage",
        SomeSubClassInAnotherPackage.pleaseCallm(new SomeSubClassInAnotherPackage()));
    assertEquals("SomeSubSubClassInAnotherPackage",
        SomeSubClassInAnotherPackage.pleaseCallm(new SomeSubSubClassInAnotherPackage()));

    assertEquals("ClassExposingM",
        aCaller.callPackagePrivatem(new ClassExposingM()));

    SomeInterface i = new ClassExposingM();
    assertEquals("ClassExposingM", i.m());
    assertEquals("live at ClassExposingM", new ClassExposingM().f());

View Full Code Here

Examples of com.jjesus.callback.Caller

public class App
{
    public static void main( String[] args )
    {
        System.out.println("Main()");
        Caller caller = new Caller();
        Handler handler = new Handler();
        caller.registerCallback(handler);
        caller.doCallback();
    }
View Full Code Here

Examples of org.apache.ivy.core.resolve.IvyNodeCallers.Caller

    private void populateDependencyTree(IvyNode dependency, ModuleRevisionId currentMrid,
            ResolveReport report) {
        registerNodeIfNecessary(dependency.getId());
        for (int i = 0; i < dependency.getAllCallers().length; i++) {
            Caller caller = dependency.getAllCallers()[i];
            addDependency(caller.getModuleRevisionId(), dependency);
        }
    }
View Full Code Here

Examples of org.exolab.jms.net.connector.Caller

            throws RemoteException {
        super(orb, null, true);
        if (connection == null) {
            throw new IllegalArgumentException("Argument 'connection' is null");
        }
        Caller caller = orb.getCaller();
        if (caller == null) {
            throw new ExportException("Can't determine remote caller");
        }
        _uri = caller.getRemoteURI().toString();
        orb.addCallerListener(_uri, this);
        _connection = connection;
    }
View Full Code Here

Examples of org.exolab.jms.net.connector.Caller

         * @param callback the callback to register
         */
        public synchronized void addCallback(Callback callback) {
            super.addCallback(callback);
            try {
                Caller caller = _orb.getCaller();
                _orb.addCallerListener(caller.getRemoteURI().toString(), this);
            } catch (RemoteException exception) {
                _exception = exception;
            }
        }
View Full Code Here

Examples of org.exolab.jms.net.connector.Caller

     * @throws ExportException       if the object cannot be exported
     * @throws StubNotFoundException if the proxy class cannot be found
     */
    public Proxy exportObjectTo(Object object) throws ExportException,
            StubNotFoundException {
        Caller caller = (Caller) _caller.get();
        if (caller == null) {
            throw new ExportException("Cannot export - no current caller");
        }
        return doExportTo(object, caller.getLocalURI());
    }
View Full Code Here

Examples of org.exolab.jms.net.connector.Caller

            Runnable invoker = new Runnable() {
                public void run() {
                    Response response;
                    try {
                        Request request = invocation.getRequest();
                        Caller caller = invocation.getCaller();
                        response = invoke(request, caller);
                    } catch (Throwable exception) {
                        response = new Response(exception);
                    }
                    invocation.setResponse(response);
View Full Code Here

Examples of org.jboss.test.aop.packagedotdot.caller.Caller

      NotConstructionInterceptor.intercepted = false;
      callee.method();
      assertFalse(NotConstructionInterceptor.intercepted);

      NotConstructionInterceptor.intercepted = false;
      Caller caller = new Caller();
      assertTrue(NotConstructionInterceptor.intercepted);

      NotConstructionInterceptor.intercepted = false;
      caller.method();
      assertTrue(NotConstructionInterceptor.intercepted);
   }
View Full Code Here

Examples of org.nimbustools.api.repr.Caller

    @Test
    @DirtiesContext
    public void simpleBackfillTest() throws Exception {
        Manager rm = this.locator.getManager();
        Caller superuser = this.populator().getSuperuserCaller();

        logger.info(rm.getVMMReport());

        logger.debug("Submitting backfill requests..");
View Full Code Here

Examples of org.nimbustools.api.repr.Caller

    @Test
    @DirtiesContext
    public void simpleBackfillPreemptionTest() throws Exception {
        Manager rm = this.locator.getManager();
        Caller superuser = this.populator().getSuperuserCaller();

        logger.debug("Submitting backfill requests..");

        AsyncCreateRequest backfill1 = this.populator().getBackfillRequest("backfill1", 3);
        RequestInfo backfill1Result = rm.addBackfillRequest(backfill1, superuser);
        AsyncCreateRequest backfill2 = this.populator().getBackfillRequest("backfill2", 5);
        RequestInfo backfill2Result = rm.addBackfillRequest(backfill2, superuser);

        logger.debug("Waiting 2 seconds for resources to be allocated.");
        Thread.sleep(2000);

        // Check backfill request state
        RequestInfo[] backfillRequestsByCaller = rm.getBackfillRequestsByCaller(superuser);
        assertEquals(2, backfillRequestsByCaller.length);

        logger.info(rm.getVMMReport());

        // Three regular VMs should preempt
        Caller caller = this.populator().getCaller();
        CreateRequest req = this.populator().getCreateRequest("regular", 1200, 256 , 3);
        rm.create(req, caller);

        logger.debug("Waiting 2 seconds for resources to be allocated.");
        Thread.sleep(2000);
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.