Skip to content

Instantly share code, notes, and snippets.

@gnodet
Created February 25, 2011 09:44
Show Gist options
  • Select an option

  • Save gnodet/843591 to your computer and use it in GitHub Desktop.

Select an option

Save gnodet/843591 to your computer and use it in GitHub Desktop.
for (String id : container.getComponentIds()) {
ComponentMetadata meta = container.getComponentMetadata(id);
if (meta instanceof ExtendedBeanMetadata) {
Class clazz = ((ExtendedBeanMetadata) meta).getRuntimeClass();
if (AbstractPropertyPlaceholder.class.isAssignableFrom(clazz)) {
AbstractPropertyPlaceholder ph = (AbstractPropertyPlaceholder) container.getComponentInstance(id);
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment