Package org.apache.webbeans.plugins

Examples of org.apache.webbeans.plugins.OpenWebBeansEjbPlugin


        }

        boolean ok = false;

        /* Enterprise WebBean */
        OpenWebBeansEjbPlugin plugin = PluginLoader.getInstance().getEjbPlugin();
        if (plugin != null && plugin.isSessionBean(clazz))
        {
            // Configure for EJB
            configureEJBWebBean(clazz);
            ok = true;
        }
View Full Code Here


    private Object getEjbOrJmsProxyReference(Bean<?> bean,Type beanType, CreationalContext<?> creationalContext)
    {
        //Create session bean proxy
        if(bean instanceof EnterpriseBeanMarker)
        {
            OpenWebBeansEjbPlugin ejbPlugin = PluginLoader.getInstance().getEjbPlugin();
            if(ejbPlugin == null)
            {
                throw new IllegalStateException("There is no EJB plugin provider. Injection is failed for bean : " + bean);
            }
           
            return ejbPlugin.getSessionBeanProxy(bean,ClassUtil.getClazz(beanType), creationalContext);
        }
       
        //Create JMS Proxy
        else if(bean instanceof JmsBeanMarker)
        {
View Full Code Here

     * @throws WebBeansConfigurationException if any exception occurs
     */
    public static boolean isSessionBean(Class<?> clazz) throws WebBeansConfigurationException
    {
        PluginLoader loader = PluginLoader.getInstance();
        OpenWebBeansEjbPlugin ejbPlugin = loader.getEjbPlugin();
       
        //There is no ejb container
        if(ejbPlugin == null)
        {
            return false;
        }
       
        return ejbPlugin.isSessionBean(clazz);
    }
View Full Code Here

     * @return ejb bean
     */
    public static <T> Bean<T> defineEjbBean(Class<T> clazz)
    {
        PluginLoader loader = PluginLoader.getInstance();
        OpenWebBeansEjbPlugin ejbPlugin = loader.getEjbPlugin();
       
        if(ejbPlugin == null)
        {
            throw new IllegalStateException("There is no provided EJB plugin. Unable to define session bean for class : " + clazz.getName());
        }
       
        return ejbPlugin.defineSessionBean(clazz);
    }
View Full Code Here

        }

        boolean ok = false;

        /* Enterprise WebBean */
        OpenWebBeansEjbPlugin plugin = PluginLoader.getInstance().getEjbPlugin();
        if (plugin != null && plugin.isSessionBean(clazz))
        {
            // Configure for EJB
            configureEJBWebBean(clazz);
            ok = true;
        }
View Full Code Here

    private Object getEjbOrJmsProxyReference(Bean<?> bean,Type beanType)
    {
        //Create session bean proxy
        if(bean instanceof EnterpriseBeanMarker)
        {
            OpenWebBeansEjbPlugin ejbPlugin = PluginLoader.getInstance().getEjbPlugin();
            if(ejbPlugin == null)
            {
                throw new IllegalStateException("There is no EJB plugin provider. Injection is failed for bean : " + bean);
            }
           
            return ejbPlugin.getSessionBeanProxy(bean,ClassUtil.getClazz(beanType));
        }
       
        //Create JMS Proxy
        else if(bean instanceof JmsBeanMarker)
        {
View Full Code Here

TOP

Related Classes of org.apache.webbeans.plugins.OpenWebBeansEjbPlugin

Copyright © 2018 www.massapicom. 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.