Examples of FailOverService


Examples of org.apache.webbeans.spi.FailOverService

    @Override
    public void sessionWillPassivate(HttpSessionEvent event)
    {
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        FailOverService failOverService = webBeansContext.getService(FailOverService.class);

        if (failOverService != null && failOverService.isSupportPassivation())
        {
            HttpSession session = event.getSession();
            failOverService.sessionWillPassivate(session);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

    @Override
    public void sessionDidActivate(HttpSessionEvent event)
    {
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        FailOverService failOverService = webBeansContext.getService(FailOverService.class);

        if (failOverService != null && (failOverService.isSupportFailOver() || failOverService.isSupportPassivation()))
        {
            HttpSession session = event.getSession();
            failOverService.sessionDidActivate(session);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

     * delegation of serialization behavior
     */
    public <T> void writeExternal(Bean<T> bean, T actualResource, ObjectOutput out) throws IOException
    {
        // try fail over service to serialize the resource object
        FailOverService failoverService = webBeansContext.getService(FailOverService.class);
        if (failoverService != null)
        {
            Object ret = failoverService.handleResource(bean, actualResource, null, out);
            if (ret != FailOverService.NOT_HANDLED)
            {
                return;
            }
        }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

    public <T> T readExternal(Bean<T> bean, ObjectInput in) throws IOException,
            ClassNotFoundException
    {
        T actualResource = null;
        // try fail over service to serialize the resource object
        FailOverService failoverService = webBeansContext.getService(FailOverService.class);
        if (failoverService != null)
        {
            actualResource = (T) failoverService.handleResource(bean, actualResource, in, null);
            if (actualResource != FailOverService.NOT_HANDLED)
            {
                return actualResource;
            }
        }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

    private static final long serialVersionUID = -5690043082210295824L;

    public void sessionWillPassivate(HttpSessionEvent event)
    {
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        FailOverService failOverService = webBeansContext.getService(FailOverService.class);

        if (failOverService != null && failOverService.isSupportPassivation())
        {
            HttpSession session = event.getSession();
            failOverService.sessionWillPassivate(session);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

    }

    public void sessionDidActivate(HttpSessionEvent event)
    {
        WebBeansContext webBeansContext = WebBeansContext.currentInstance();
        FailOverService failOverService = webBeansContext.getService(FailOverService.class);

        if (failOverService != null && (failOverService.isSupportFailOver() || failOverService.isSupportPassivation()))
        {
            HttpSession session = event.getSession();
            failOverService.sessionDidActivate(session);
        }
    }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

     * delegation of serialization behavior
     */
    public <T> void writeExternal(Bean<T> bean, T actualResource, ObjectOutput out) throws IOException
    {
        // try fail over service to serialize the resource object
        FailOverService failoverService = webBeansContext.getService(FailOverService.class);
        if (failoverService != null)
        {
            Object ret = failoverService.handleResource(bean, actualResource, null, out);
            if (ret != FailOverService.NOT_HANDLED)
            {
                return;
            }
        }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

    public <T> T readExternal(Bean<T> bean, ObjectInput in) throws IOException,
            ClassNotFoundException
    {
        T actualResource = null;
        // try fail over service to serialize the resource object
        FailOverService failoverService = webBeansContext.getService(FailOverService.class);
        if (failoverService != null)
        {
            actualResource = (T) failoverService.handleResource(bean, actualResource, in, null);
            if (actualResource != FailOverService.NOT_HANDLED)
            {
                return actualResource;
            }
        }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

     * delegation of serialization behavior
     */
    public <T> void writeExternal(Bean<T> bean, T actualResource, ObjectOutput out) throws IOException
    {
        // try fail over service to serialize the resource object
        FailOverService failoverService = webBeansContext.getService(FailOverService.class);
        if (failoverService != null)
        {
            Object ret = failoverService.handleResource(bean, actualResource, null, out);
            if (ret != FailOverService.NOT_HANDLED)
            {
                return;
            }
        }
View Full Code Here

Examples of org.apache.webbeans.spi.FailOverService

    public <T> T readExternal(Bean<T> bean, ObjectInput in) throws IOException,
            ClassNotFoundException
    {
        T actualResource = null;
        // try fail over service to serialize the resource object
        FailOverService failoverService = webBeansContext.getService(FailOverService.class);
        if (failoverService != null)
        {
            //X TODO hmm actualResource is definitely null here!
            //X TODO anyone enlightened enough to point me what this now does actually?
            actualResource = (T) failoverService.handleResource(bean, actualResource, in, null);
            if (actualResource != FailOverService.NOT_HANDLED)
            {
                return actualResource;
            }
        }
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.