Examples of BeanProperty


Examples of com.thoughtworks.xstream.converters.javabean.BeanProperty

   * @param definedIn
   * @return
   */
  public BeanProperty property(Class<?> cls, String name) {
    Map<String, BeanProperty> properties = buildMap(cls);
    BeanProperty property = (BeanProperty) properties.get(name);
    if (property == null) {
      throw new ObjectAccessException("No such property " + cls.getName() + "."
          + name);
    } else {
      return property;
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.model.beans.BeanProperty

    Beans beans = new Beans();
    Bean workflowDeployer = new Bean(processId + WORKFLOW_DEPLOYER_NAME_SUFFIX, WORKFLOW_DEPLOYER_PARENT);
    beans.getBeans().add(workflowDeployer);
   
    // Add pointer to model
    BeanProperty modelsProperty = new BeanProperty(PROPERTY_MODELS);
    modelsProperty.addListItem(EXTENSIONS_PATH_PREFIX + contentModelFileName);
    workflowDeployer.getProperties().add(modelsProperty);
   
    // Add pointer to process definition
    BeanProperty workflowProperty = new BeanProperty(PROPERTY_WORKFLOW_DEFINITIONS);
    workflowProperty.addProp(new BeanPropertyProp(PROP_KEY_ENGINE_ID, PROP_ENGINE_ID));
    workflowProperty.addProp(new BeanPropertyProp(PROP_KEY_MIME_TYPE, PROP_MIME_TYPE));
    workflowProperty.addProp(new BeanPropertyProp(PROP_KEY_LOCATION, EXTENSIONS_PATH_PREFIX + processFileName));
    // TODO: set back to false or make configurable
    workflowProperty.addProp(new BeanPropertyProp(PROP_KEY_REDEPLOY, Boolean.TRUE.toString()));
    workflowDeployer.getProperties().add(workflowProperty);
   
    writeBeans(out, beans);
  }
View Full Code Here

Examples of org.apache.commons.betwixt.BeanProperty

                                .suppressProperty(
                                        beanClass,
                                        descriptor.getPropertyType(),
                                        descriptor.getName())) {
                          Descriptor nodeDescriptor =
                              getXMLIntrospector().createXMLDescriptor(new BeanProperty(descriptor));
                          if ( nodeDescriptor != null ) {
                              addDescriptor( nodeDescriptor );
                          }
                        }
                    }
View Full Code Here

Examples of org.eclipse.e4.xwt.javabean.metadata.properties.BeanProperty

          if (property != null && !property.isDefault()) {
            addProperty(property);
          } else {
            if (p.getWriteMethod() != null
                || !p.getPropertyType().isPrimitive()) {
              addProperty(new BeanProperty(p));
            }
          }
        }
      }
      for (Field f : type.getDeclaredFields()) {
View Full Code Here

Examples of org.fusesource.scalate.introspector.BeanProperty

                FieldProperty fieldProp = (FieldProperty)prop;
                Field fld = fieldProp.getField();
                return elementTypeClass(fld.getGenericType());
            }
            if (prop instanceof BeanProperty) {
                BeanProperty beanProp = (BeanProperty)prop;
                Method readMethod = beanProp.descriptor().getReadMethod();
                if (readMethod != null) {
                    return elementTypeClass(readMethod.getGenericReturnType());
                }
            }
        }
View Full Code Here

Examples of org.jboss.injection.lang.reflect.BeanProperty

         return;

      for(ResourceInjectionTargetMetaData injectionTarget : injectionTargets)
      {
         AccessibleObject ao = findInjectionTarget(classLoader, injectionTarget);
         BeanProperty property = BeanPropertyFactory.create(ao);
         injectors.add(factory.create(property));
      }
   }
View Full Code Here

Examples of org.jboss.injection.lang.reflect.BeanProperty

      ClassLoader loader = container.getClassloader();
      for(ResourceInjectionTargetMetaData injectionTarget : ref.getInjectionTargets())
      {
         AccessibleObject ao = findInjectionTarget(loader, injectionTarget);
         BeanProperty prop = BeanPropertyFactory.create(ao);
         JndiPropertyInjector propInjector = new JndiPropertyInjector(prop, encName, container.getEnc());
         container.getInjectors().add(propInjector);
         // Validate all the injection types are consistent
         Class<?> type;
         if (ao instanceof Field)
View Full Code Here

Examples of org.jboss.injection.lang.reflect.BeanProperty

   {
     
      Injector jndiInjector;
      if(annotatedElement instanceof Method)
      {
         BeanProperty prop = BeanPropertyFactory.create((Method) annotatedElement);
         jndiInjector = new JndiPropertyInjector(prop, encName, container.getEnc());
      }
      else if(annotatedElement instanceof Field)
      {
         BeanProperty prop = BeanPropertyFactory.create((Field) annotatedElement);
         jndiInjector = new JndiPropertyInjector(prop, encName, container.getEnc());
      }
      else
      {
         throw new IllegalStateException("Annotated element for '" + encName + "' is niether Method nor Field: " + annotatedElement);
View Full Code Here

Examples of org.jboss.injection.lang.reflect.BeanProperty

            map = new HashMap<AccessibleObject, Injector>();
            injectors.put(injectionTarget.getInjectionTargetClass(), map);
         }
        
         AccessibleObject ao = InjectionUtil.findInjectionTarget(classLoader, injectionTarget);
         BeanProperty property = BeanPropertyFactory.create(ao);
         map.put(ao, factory.create(property));
      }
   }
View Full Code Here

Examples of org.jboss.injection.lang.reflect.BeanProperty

         // JAX-RPC MessageContext
         StatelessBeanContext sbc = (StatelessBeanContext)beanCtx;
         sbc.setMessageContextJAXRPC(jaxrpcMessageContext);

         // JAX-WS MessageContext
         BeanProperty beanProp = sbc.getWebServiceContextProperty();
         if (beanProp != null)
         {
            EJBContext ejbCtx = beanCtx.getEJBContext();           
            jaxwsContext.addAttachment(EJBContext.class, ejbCtx);
            beanProp.set(beanCtx.getInstance(), jaxwsContext);
         }
      }
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.