org.mentawai.ioc
Interface Bean
- All Known Implementing Classes:
- ActionComponent, ApplicationComponent, DefaultComponent, LocaleComponent, ScopeComponent, SessionComponent
public interface Bean
Defines an IoC component.
A Mentawai IoC component returns instances of a given class to be injected in the action by the IoCFilter and InjectionFilter.
- Author:
- Sergio Oliveira
getBean
Object getBean()
throws InstantiationException
- Returns an instance of the class this component represents.
- Returns:
- An instance of the class this component represents.
- Throws:
InstantiationException - if for any reason the instance cannot be created.
getType
Class<? extends Object> getType()
Copyright © 2011. All Rights Reserved.