Examples of ApplicationBean


Examples of com.sun.faces.config.beans.ApplicationBean

            top = (ResourceBundleBean) digester.pop();
        } catch (Exception e) {
            throw new IllegalStateException("Popped object is not a " +
                                            CLASS_NAME + " instance");
        }
        ApplicationBean fcb = (ApplicationBean) digester.peek();
        if (null != fcb.getResourceBundle(top.getVar())) {
            throw new IllegalStateException("Multiple ResourceBundle definitions " +
                    "with the same name: " + top.getVar() + ".");
        }
        fcb.addResourceBundle(top);

    }

Examples of com.sun.faces.config.beans.ApplicationBean

            fcb = (FacesConfigBean) digester.peek();
        } catch (Exception e) {
            throw new IllegalStateException
                ("No parent FacesConfigBean on object stack");
        }
        ApplicationBean ab = fcb.getApplication();
        if (ab == null) {
            if (digester.getLogger().isDebugEnabled()) {
                digester.getLogger().debug("[ApplicationRule]{" +
                                           digester.getMatch() +
                                           "} New " + CLASS_NAME);

Examples of com.sun.faces.config.beans.ApplicationBean

     */
    public void begin(String namespace, String name,
                      Attributes attributes) throws Exception {

       
        ApplicationBean ab = null;
        try {
            ab = (ApplicationBean) digester.peek();
        } catch (Exception e) {
            throw new IllegalStateException
                ("No parent ApplicationBean on object stack");
        }
        LocaleConfigBean lcb = ab.getLocaleConfig();
        if (lcb == null) {
            if (digester.getLogger().isDebugEnabled()) {
                digester.getLogger().debug("[LocaleConfigRule]{" +
                                           digester.getMatch() +
                                           "} New " + CLASS_NAME);
            }
            Class clazz =
                digester.getClassLoader().loadClass(CLASS_NAME);
            lcb = (LocaleConfigBean) clazz.newInstance();
            ab.setLocaleConfig(lcb);
        } else {
            if (digester.getLogger().isDebugEnabled()) {
                digester.getLogger().debug("[LocaleConfigRule]{" +
                                           digester.getMatch() +
                                           "} Old " + CLASS_NAME);

Examples of com.sun.faces.config.beans.ApplicationBean

        factoryBean.addApplicationFactory("com.sun.faces.application.ApplicationFactoryImpl");
        factoryBean.addFacesContextFactory("com.sun.faces.context.FacesContextFactoryImpl");
        factoryBean.addLifecycleFactory("com.sun.faces.lifecycle.LifecycleFactoryImpl");
        factoryBean.addRenderKitFactory("com.sun.faces.renderkit.RenderKitFactoryImpl");

        applicationBean = new ApplicationBean();
        applicationBean.addActionListener("com.sun.faces.application.ActionListenerImpl");
        applicationBean.addNavigationHandler("com.sun.faces.application.NavigationHandlerImpl");
        applicationBean.addStateManager("com.sun.faces.application.StateManagerImpl");
        applicationBean.addViewHandler("com.sun.faces.application.ViewHandlerImpl");

Examples of com.sun.faces.config.beans.ApplicationBean

            top = (ResourceBundleBean) digester.pop();
        } catch (Exception e) {
            throw new IllegalStateException("Popped object is not a " +
                                            CLASS_NAME + " instance");
        }
        ApplicationBean fcb = (ApplicationBean) digester.peek();
        if (null != fcb.getResourceBundle(top.getVar())) {
            throw new IllegalStateException("Multiple ResourceBundle definitions " +
                    "with the same name: " + top.getVar() + ".");
        }
        fcb.addResourceBundle(top);

    }

Examples of com.sun.faces.config.beans.ApplicationBean

            fcb = (FacesConfigBean) digester.peek();
        } catch (Exception e) {
            throw new IllegalStateException
                ("No parent FacesConfigBean on object stack");
        }
        ApplicationBean ab = fcb.getApplication();
        if (ab == null) {
            if (digester.getLogger().isDebugEnabled()) {
                digester.getLogger().debug("[ApplicationRule]{" +
                                           digester.getMatch() +
                                           "} New " + CLASS_NAME);

Examples of com.sun.faces.config.beans.ApplicationBean

     */
    public void begin(String namespace, String name,
                      Attributes attributes) throws Exception {

       
        ApplicationBean ab = null;
        try {
            ab = (ApplicationBean) digester.peek();
        } catch (Exception e) {
            throw new IllegalStateException
                ("No parent ApplicationBean on object stack");
        }
        LocaleConfigBean lcb = ab.getLocaleConfig();
        if (lcb == null) {
            if (digester.getLogger().isDebugEnabled()) {
                digester.getLogger().debug("[LocaleConfigRule]{" +
                                           digester.getMatch() +
                                           "} New " + CLASS_NAME);
            }
            Class clazz =
                digester.getClassLoader().loadClass(CLASS_NAME);
            lcb = (LocaleConfigBean) clazz.newInstance();
            ab.setLocaleConfig(lcb);
        } else {
            if (digester.getLogger().isDebugEnabled()) {
                digester.getLogger().debug("[LocaleConfigRule]{" +
                                           digester.getMatch() +
                                           "} Old " + CLASS_NAME);

Examples of edu.indiana.extreme.gfac.beans.ApplicationBean

   * @param regService : XRegistry service
   * @param application : Object of Application bean to removed
   * @throws GfacException
   */
  public void removeObject(RegistryService regService, BeanObject application) throws GfacException {
    ApplicationBean appDesc = (ApplicationBean) application;
    regService.removeAppDesc(new QName(appDesc.getObjectNamespace(),appDesc.getApplicationName()).toString(), appDesc.getHostName());

  }

Examples of edu.indiana.extreme.gfac.beans.ApplicationBean

     * @param applicationObject : Object of Application bean 
     * @return  Application Name
     * @throws GfacException
     */
  public String updateObject(RegistryService regService, BeanObject applicationObject) throws GfacException {
    ApplicationBean appDesc = (ApplicationBean) applicationObject;
    ApplicationDescriptionDocument oldAppDesc = RegistryUtil.getAppDesc(regService, new QName(appDesc.getObjectNamespace(), appDesc.getApplicationName()), appDesc.getHostName());
    String appDescStr = applicationXMLRequest(regService, appDesc, null);
    if (oldAppDesc != null) {
      regService.removeAppDesc(new QName(appDesc.getObjectNamespace(),appDesc.getApplicationName()).toString(), appDesc.getHostName());
    }
   
    regService.registerAppDesc(appDescStr);
    return appDescStr;
  }

Examples of org.apache.webbeans.newtests.proxy.beans.ApplicationBean

        Assert.assertTrue(conversationBean instanceof ProxyObject);
        Assert.assertNotNull(((ProxyObject) conversationBean).getHandler());
        Assert.assertEquals(((ProxyObject) conversationBean).getHandler().getClass(), NormalScopedBeanInterceptorHandler.class);


        ApplicationBean applicationBean = getInstance(ApplicationBean.class);
        Assert.assertNotNull(applicationBean);
        Assert.assertTrue(applicationBean instanceof ProxyObject);
        Assert.assertNotNull(((ProxyObject) applicationBean).getHandler());
        Assert.assertEquals(((ProxyObject) applicationBean).getHandler().getClass(), ApplicationScopedBeanInterceptorHandler.class);
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.