@Override public void applyMetadata(FaceletContext ctx, Object instance) { for (int i = 0; i < size; i++) { this.mappers[i].applyMetadata(ctx, instance); } }
public void applyMetadata(FaceletContext ctx, Object instance) { // TODO: PROFILE - Check if saving the _size worth it or if an enhanced for is better for (int i = 0; i < _size; i++) { _mappers[i].applyMetadata(ctx, instance); } } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { for (int i = 0; i < size; i++) { this.mappers[i].applyMetadata(ctx, instance); } }
public void applyMetadata(FaceletContext ctx, Object instance) { for (int i = 0; i < size; i++) { this.mappers[i].applyMetadata(ctx, instance); } }
public void applyMetadata(FaceletContext ctx, Object instance) { // TODO: PROFILE - Check if saving the _size worth it or if an enhanced for is better for (int i = 0; i < _size; i++) { _mappers[i].applyMetadata(ctx, instance); } } }
public void applyMetadata(FaceletContext ctx, Object instance) { // TODO: PROFILE - Check if saving the _size worth it or if an enhanced for is better for (int i = 0; i < _size; i++) { _mappers[i].applyMetadata(ctx, instance); } } }
@Override public void applyMetadata(FaceletContext ctx, Object instance) { for (int i = 0; i < size; i++) { this.mappers[i].applyMetadata(ctx, instance); } }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx the Facelet context. * @param instance the instance. */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx the Facelet context. * @param instance the instance. */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx the Facelet context. * @param instance the instance. */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx the Facelet context. * @param instance the instance. */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx * @param instance */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx * @param instance */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
@Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { UIComponent component = (UIComponent) instance; Class<?> type = instance.getClass(); if (_mapper == null || !_lastType.equals(type)) { _lastType = type; BeanInfo beanInfo = (BeanInfo)component.getAttributes().get(UIComponent.BEANINFO_KEY); _mapper = createMetaRuleset(type , beanInfo).finish(); } _mapper.applyMetadata(ctx, instance); } }
@Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { UIComponent component = (UIComponent) instance; Class<?> type = instance.getClass(); if (_mapper == null || !_lastType.equals(type)) { _lastType = type; BeanInfo beanInfo = (BeanInfo)((UIComponent) component).getAttributes().get(UIComponent.BEANINFO_KEY); _mapper = createMetaRuleset(type , beanInfo).finish(); } _mapper.applyMetadata(ctx, instance); } }
@Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { UIComponent component = (UIComponent) instance; Class<?> type = instance.getClass(); if (_mapper == null || !_lastType.equals(type)) { _lastType = type; BeanInfo beanInfo = (BeanInfo)((UIComponent) component).getAttributes().get(UIComponent.BEANINFO_KEY); _mapper = createMetaRuleset(type , beanInfo).finish(); } _mapper.applyMetadata(ctx, instance); } }
/** * Specialized implementation to prevent caching of the MetaRuleset when * ProjectStage is Development. */ @Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { if (ctx.getFacesContext().isProjectStage(ProjectStage.Development)) { Metadata meta = createMetaRuleset(instance.getClass()).finish(); meta.applyMetadata(ctx, instance); } else { super.setAttributes(ctx, instance); } } }
/** * Specialized implementation to prevent caching of the MetaRuleset when * ProjectStage is Development. */ @Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { if (ctx.getFacesContext().isProjectStage(ProjectStage.Development)) { Metadata meta = createMetaRuleset(instance.getClass()).finish(); meta.applyMetadata(ctx, instance); } else { super.setAttributes(ctx, instance); } } }
/** * Specialized implementation to prevent caching of the MetaRuleset when * ProjectStage is Development. */ @Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { if (ctx.getFacesContext().isProjectStage(ProjectStage.Development)) { Metadata meta = createMetaRuleset(instance.getClass()).finish(); meta.applyMetadata(ctx, instance); } else { super.setAttributes(ctx, instance); } } }
/** * Specialized implementation to prevent caching of the MetaRuleset when * ProjectStage is Development. */ @Override public void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { if (ctx.getFacesContext().isProjectStage(ProjectStage.Development)) { Metadata meta = createMetaRuleset(instance.getClass()).finish(); meta.applyMetadata(ctx, instance); } else { super.setAttributes(ctx, instance); } } }