Package org.apache.portals.bridges.frameworks.spring

Examples of org.apache.portals.bridges.frameworks.spring.ModelBeanImpl


            {
                BeanDefinition bd = springFactory.getBeanDefinition(beanName);
                Object bean = springFactory.getBean(beanName);
                if (bd == null || bean == null)
                {
                    return new ModelBeanImpl(beanName, ModelBean.POJO);
                }                  
                String lookup = null;
                boolean requiresExternalSupport = false;
                PropertyValue value = bd.getPropertyValues().getPropertyValue("lookupKey");
                if (value != null)
                {
                    lookup = (String)value.getValue();
                }               
                if (bean instanceof ExternalComponentSupport)
                {
                    requiresExternalSupport = true;
                }
                modelBean = new ModelBeanImpl(beanName, ModelBean.POJO, lookup, requiresExternalSupport);
                modelBeanMap.put(beanName, modelBean);
            }
        }
        else
        {
            modelBean = new ModelBeanImpl(beanName, ModelBean.PREFS_MAP);
        }       
        return modelBean;
    }
View Full Code Here


            {
                BeanDefinition bd = springFactory.getBeanDefinition(beanName);
                Object bean = springFactory.getBean(beanName);
                if (bd == null || bean == null)
                {
                    return new ModelBeanImpl(beanName, ModelBean.POJO);
                }                  
                String lookup = null;
                boolean requiresExternalSupport = false;
                PropertyValue value = bd.getPropertyValues().getPropertyValue("lookupKey");
                if (value != null)
                {
                    lookup = (String)value.getValue();
                }               
                if (bean instanceof ExternalComponentSupport)
                {
                    requiresExternalSupport = true;
                }
                modelBean = new ModelBeanImpl(beanName, ModelBean.POJO, lookup, requiresExternalSupport);
                modelBeanMap.put(beanName, modelBean);
            }
        }
        else
        {
            modelBean = new ModelBeanImpl(beanName, ModelBean.PREFS_MAP);
        }       
        return modelBean;
    }
View Full Code Here

            {
                BeanDefinition bd = springFactory.getBeanDefinition(beanName);
                Object bean = springFactory.getBean(beanName);
                if (bd == null || bean == null)
                {
                    return new ModelBeanImpl(beanName, ModelBean.POJO);
                }                  
                String lookup = null;
                boolean requiresExternalSupport = false;
                PropertyValue propValue = bd.getPropertyValues().getPropertyValue("lookupKey");
                if (propValue != null)
                {
                    Object value = propValue.getValue();

                    if (value instanceof TypedStringValue)
                    {
                        lookup = ((TypedStringValue) value).getValue();
                    }
                    else
                    {
                        lookup = (String) value;
                    }
                }               
                if (bean instanceof ExternalComponentSupport)
                {
                    requiresExternalSupport = true;
                }
                modelBean = new ModelBeanImpl(beanName, ModelBean.POJO, lookup, requiresExternalSupport);
                modelBeanMap.put(beanName, modelBean);
            }
        }
        else
        {
            modelBean = new ModelBeanImpl(beanName, ModelBean.PREFS_MAP);
        }       
        return modelBean;
    }
View Full Code Here

            {
                BeanDefinition bd = springFactory.getBeanDefinition(beanName);
                Object bean = springFactory.getBean(beanName);
                if (bd == null || bean == null)
                {
                    return new ModelBeanImpl(beanName, ModelBean.POJO);
                }                  
                String lookup = null;
                boolean requiresExternalSupport = false;
                PropertyValue value = bd.getPropertyValues().getPropertyValue("lookupKey");
                if (value != null)
                {
                    lookup = (String)value.getValue();
                }               
                if (bean instanceof ExternalComponentSupport)
                {
                    requiresExternalSupport = true;
                }
                modelBean = new ModelBeanImpl(beanName, ModelBean.POJO, lookup, requiresExternalSupport);
                modelBeanMap.put(beanName, modelBean);
            }
        }
        else
        {
            modelBean = new ModelBeanImpl(beanName, ModelBean.PREFS_MAP);
        }       
        return modelBean;
    }
View Full Code Here

            {
                BeanDefinition bd = springFactory.getBeanDefinition(beanName);
                Object bean = springFactory.getBean(beanName);
                if (bd == null || bean == null)
                {
                    return new ModelBeanImpl(beanName, ModelBean.POJO);
                }                  
                String lookup = null;
                boolean requiresExternalSupport = false;
                PropertyValue value = bd.getPropertyValues().getPropertyValue("lookupKey");
                if (value != null)
                {
                    lookup = (String)value.getValue();
                }               
                if (bean instanceof ExternalComponentSupport)
                {
                    requiresExternalSupport = true;
                }
                modelBean = new ModelBeanImpl(beanName, ModelBean.POJO, lookup, requiresExternalSupport);
            }
        }
        else
        {
            modelBean = new ModelBeanImpl(beanName, ModelBean.PREFS_MAP);
        }       
        return modelBean;
    }
View Full Code Here

TOP

Related Classes of org.apache.portals.bridges.frameworks.spring.ModelBeanImpl

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.