/** * 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 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 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 || !_lastType.equals(type)) { _lastType = type; _mapper = createMetaRuleset(type).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)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); } } }