Seam - list all components?

As said I would like to get a list of all the components For each class declared as a component, Seam creates a component definition and stashes it away in the application scope. Its naming convention follows The pattern . Component So you can use /** * Metamodel class for component classes * * Similar to org.springframework.beans.factory.config.

BeanDefinition used by Spring */ org.jboss.seam. Component Context context = Contexts. GetApplicationContext(); for (String name: context.getNames()) { Object object = context.

Get(name); if(object instanceof org.jboss.seam. Component) { Component component = (Component) object; System.out. Println(component.getName()); System.out.

Println(component.getType()); System.out. Println(component.getScope()); System.out. Println(component.getTimeout()); System.out.

Println(component.isStartup()); System.out. Println(component.isSynchronize()); } } If you want to retrieve a desired component, you can use Object object = Component. GetInstance(component.getName()).

Thanks - I didn't see that in the API, that looks like exactly what I need. – Walter White May 18 '10 at 13:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions