public void applyMetadata(FaceletContext ctx, Object instance) { for (int i = 0; i < size; i++) { this.mappers[i].applyMetadata(ctx, instance); } }
private void setSubComponentAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (subComponentMapper == null || !subComponentLastType.equals(type)) { subComponentLastType = type; subComponentMapper = createSubComponentMetaRuleset(type).finish(); } subComponentMapper.applyMetadata(ctx, instance); } }
private void setSubComponentAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (subComponentMapper == null || !subComponentLastType.equals(type)) { subComponentLastType = type; subComponentMapper = createSubComponentMetaRuleset(type).finish(); } subComponentMapper.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); } } }