Examples of MethodSignature


Examples of org.apache.hivemind.service.MethodSignature

        body.end();

        classFab.addMethod(
                Modifier.PRIVATE | Modifier.FINAL | Modifier.SYNCHRONIZED,
                new MethodSignature(serviceInterface, "_service", null, null),
                body.toString());

        builder.addServiceMethods("_service()");

        // Build the implementation of interface SingletonInnerProxy

        body.clear();
        body.begin();

        body.add("_service();");

        body.end();

        classFab.addMethod(Modifier.PUBLIC | Modifier.FINAL, new MethodSignature(void.class,
                "_instantiateServiceImplementation", null, null), body.toString());

        classFab.addInterface(SingletonInnerProxy.class);

        return classFab.createClass();
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

     */
    protected void initCounters()
    {
        for (Iterator methodIterator = _methods.iterator(); methodIterator.hasNext();)
        {
            MethodSignature method = (MethodSignature) methodIterator.next();
            Counter counter = new Counter();
            _countersByMethodSignature.put(method, counter);
            _countersByMethodId.put(method.getUniqueId(), counter);
        }
    }
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

    protected void initAttributes()
    {
        List mBeanAttributeInfoList = new ArrayList();
        for (Iterator methodIterator = _methods.iterator(); methodIterator.hasNext();)
        {
            MethodSignature method = (MethodSignature) methodIterator.next();

            addAttribute(
                    mBeanAttributeInfoList,
                    method,
                    Long.class,
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

    private void addClearCachedMethod(ClassFab classFab)
    {
        classFab.addMethod(
            Modifier.PROTECTED,
            new MethodSignature(void.class, "_clearCachedReferences", null, null),
            "_remote = null;");
    }
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

        builder.end();

        classFab.addMethod(
            Modifier.SYNCHRONIZED + Modifier.PRIVATE,
            new MethodSignature(
                remoteInterface,
                "_lookupRemote",
                null,
                new Class[] { RemoteException.class }),
            builder.toString());
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

        builder.add("  throw ex;");
        builder.end(); // catch
        builder.end(); // while
        builder.end();

        classFab.addMethod(Modifier.PUBLIC, new MethodSignature(m), builder.toString());
    }
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

            body.append(";");
        }

        body.append(" }");

        cf.addMethod(Modifier.PUBLIC, new MethodSignature(m), body.toString());
    }
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

        {
            Method m = methods[i];

            toStringMethodExists |= ClassFabUtils.isToString(m);

            serviceMethods.add(new MethodSignature(m));
        }

        methods = _filterInterface.getMethods();
        for (int i = 0; i < methods.length; i++)
        {
            Method m = methods[i];

            filterMethods.add(new MethodSignature(m));
        }

        while (!serviceMethods.isEmpty())
        {
            MethodSignature ms = (MethodSignature) serviceMethods.remove(0);

            addBridgeMethod(ms, filterMethods);
        }

        reportExtraFilterMethods(filterMethods);
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

    {
        Iterator i = filterMethods.iterator();

        while (i.hasNext())
        {
            MethodSignature ms = (MethodSignature) i.next();

            _log.error(
                PipelineMessages.extraFilterMethod(
                    ms,
                    _filterInterface,
View Full Code Here

Examples of org.apache.hivemind.service.MethodSignature

    {
        Iterator i = filterMethods.iterator();

        while (i.hasNext())
        {
            MethodSignature fms = (MethodSignature) i.next();

            int position = _filterMethodAnalyzer.findServiceInterfacePosition(ms, fms);

            if (position >= 0)
            {
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.