private boolean allowRawConversion(BeanMetadata beanMetadata) { if (beanMetadata instanceof ExtendedBeanMetadata) { return ((ExtendedBeanMetadata) beanMetadata).getRawConversion(); } return false; }
private boolean allowRawConversion(BeanMetadata beanMetadata) { if (beanMetadata instanceof ExtendedBeanMetadata) { return ((ExtendedBeanMetadata) beanMetadata).getRawConversion(); } return false; }
public BeanMetadataImpl(BeanMetadata source) { super(source); this.className = source.getClassName(); this.initMethod = source.getInitMethod(); this.destroyMethod = source.getDestroyMethod(); for (BeanArgument argument : source.getArguments()) { addArgument(new BeanArgumentImpl(argument)); } for (BeanProperty property : source.getProperties()) { addProperty(new BeanPropertyImpl(property)); } this.initialization = source.getActivation(); this.factoryMethod = source.getFactoryMethod(); this.factoryComponent = MetadataUtil.cloneTarget(source.getFactoryComponent()); this.scope = source.getScope() != null ? QName.valueOf(source.getScope()) : null; this.dependsOn = new ArrayList<String>(source.getDependsOn()); if (source instanceof ExtendedBeanMetadata) { this.runtimeClass = ((ExtendedBeanMetadata) source).getRuntimeClass(); this.fieldInjection = ((ExtendedBeanMetadata) source).getFieldInjection(); this.rawConversion = ((ExtendedBeanMetadata) source).getRawConversion(); this.nonStandardSetters = ((ExtendedBeanMetadata) source).getNonStandardSetters(); } else { this.fieldInjection = false; this.rawConversion = false; this.nonStandardSetters = false; } }
public BeanMetadataImpl(BeanMetadata source) { super(source); this.className = source.getClassName(); this.initMethod = source.getInitMethod(); this.destroyMethod = source.getDestroyMethod(); for (BeanArgument argument : source.getArguments()) { addArgument(new BeanArgumentImpl(argument)); } for (BeanProperty property : source.getProperties()) { addProperty(new BeanPropertyImpl(property)); } this.initialization = source.getActivation(); this.factoryMethod = source.getFactoryMethod(); this.factoryComponent = MetadataUtil.cloneTarget(source.getFactoryComponent()); this.scope = source.getScope() != null ? QName.valueOf(source.getScope()) : null; this.dependsOn = new ArrayList<String>(source.getDependsOn()); if (source instanceof ExtendedBeanMetadata) { this.runtimeClass = ((ExtendedBeanMetadata) source).getRuntimeClass(); this.fieldInjection = ((ExtendedBeanMetadata) source).getFieldInjection(); this.rawConversion = ((ExtendedBeanMetadata) source).getRawConversion(); this.nonStandardSetters = ((ExtendedBeanMetadata) source).getNonStandardSetters(); } else { this.fieldInjection = false; this.rawConversion = false; this.nonStandardSetters = false; } }