Examples of ComponentInvocation


Examples of org.apache.tapestry.internal.services.ComponentInvocation

        return invoke(invocation);
    }

    private ComponentInvocation getInvocation(Element element)
    {
        ComponentInvocation invocation = _invocationMap.get(element);
        if (invocation == null)
        {
            throw new IllegalArgumentException(
                    "No component invocation object is associated with the Element");
        }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

    {
        Defense.notNull(form, "form");
        _formParameterLookup.clear();
        _formParameterLookup.addFieldValues(fieldValues);
        addHiddenFormFields(form);
        ComponentInvocation invocation = getInvocation(form);
        return invoke(invocation);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

        {
            LinkActionResponseGenerator linkGenerator = (LinkActionResponseGenerator) generator;

            Link link = linkGenerator.getLink();

            ComponentInvocation followup = _componentInvocationMap.get(link);

            return _followupInvoker.invoke(followup);
        }

        String message = String
View Full Code Here

Examples of org.apache.tapestry5.internal.services.ComponentInvocation

    {
        Link link = mockLink();
        ComponentResources resources = mockComponentResources();
        ComponentInvocationMap map = new PageTesterComponentInvocationMap();
        MarkupWriter writer = new MarkupWriterImpl();
        ComponentInvocation invocation = mockComponentInvocation();

        map.store(link, invocation);

        train_toURI(link, LINK_URI);
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

        if ( roleRef == null )
            throw new IllegalStateException("Argument is null");

        checkAccessToCallerSecurity();

        ComponentInvocation inv =
                    EjbContainerUtilImpl.getInstance().getCurrentInvocation();
        if ( inv instanceof EjbInvocation) {
            EjbInvocation ejbInv = (EjbInvocation) inv;
            if( ejbInv.isTimerCallback ) {
                throw new IllegalStateException("isCallerInRole not allowed from timer callback");
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

        return wsCtxt;
    }

    public Object prepareInvocation(boolean doPreInvoke)
        throws Exception {
        ComponentInvocation inv = null;
        AdapterInvocationInfo adapterInvInfo = new AdapterInvocationInfo();
        // For proper injection of handlers, we have to configure handler
        // after invManager.preInvoke but the Invocation.contextData has to be set
        // before invManager.preInvoke. So the steps of configuring jaxws handlers and
        // init'ing jaxws is done here - this sequence is important
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

        return wsCtxt;
    }

    public Object prepareInvocation(boolean doPreInvoke)
        throws Exception {
        ComponentInvocation inv = null;
        AdapterInvocationInfo adapterInvInfo = new AdapterInvocationInfo();
        // For proper injection of handlers, we have to configure handler
        // after invManager.preInvoke but the Invocation.contextData has to be set
        // before invManager.preInvoke. So the steps of configuring jaxws handlers and
        // init'ing jaxws is done here - this sequence is important
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

    }

    public AdapterInvocationInfo getHandlerImplementor()
        throws Exception {

        ComponentInvocation inv =  container.startInvocation();
        AdapterInvocationInfo aInfo = new AdapterInvocationInfo();
        aInfo.setInv(inv);
        synchronized(this) {
            if(tieClass == null) {
                tieClass = Thread.currentThread().getContextClassLoader().loadClass(getEndpoint().getTieClassName());
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

    }

    private EntityManager findExtendedEMFromInvList(EntityManagerFactory emf) {
        EntityManager em = null;

        ComponentInvocation compInv = (ComponentInvocation)
                invocationManager.getCurrentInvocation();
        if (compInv != null) {
            if (compInv.getInvocationType() == ComponentInvocation.ComponentInvocationType.EJB_INVOCATION) {
                EjbInvocation ejbInv = (EjbInvocation) compInv;
                if (ejbInv.context instanceof SessionContextImpl) {
                    SessionContextImpl ctxImpl = (SessionContextImpl) ejbInv.context;
                    if (ctxImpl.container instanceof StatefulSessionContainer) {
                        em = ctxImpl.getExtendedEntityManager(emf);
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

    @Override
    public ContextHandle saveContext(ContextService contextService, Map<String, String> contextObjectProperties) {
        // Capture the current thread context
        ClassLoader contextClassloader = null;
        AppServSecurityContext currentSecurityContext = null;
        ComponentInvocation savedInvocation = null;
        if (classloading) {
            contextClassloader = Utility.getClassLoader();
        }
        if (security) {
            currentSecurityContext = securityContext.getCurrentSecurityContext();
        }
        ComponentInvocation currentInvocation = invocationManager.getCurrentInvocation();
        if (currentInvocation != null) {
            savedInvocation = createComponentInvocation(currentInvocation);
        }
        // TODO - support workarea propagation
        return new InvocationContext(savedInvocation, contextClassloader, currentSecurityContext);
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.