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

Method Summary
 Object getBean()
          Returns an instance of the class this component represents.
 Class<? extends Object> getType()
           
 

Method Detail

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 © 2013. All Rights Reserved.