org.beanlet
Interface BeanletFactory<T>


public interface BeanletFactory<T>

Factory for creating beanlet references.


Method Summary
 BeanletReference<T> create()
          Creates a new beanlet reference for the underlying beanlet.
 BeanletReference<T> create(Map<String,?> info)
          Creates a new beanlet reference for the underlying beanlet.
 BeanletMetaData<T> getBeanletMetaData()
          Returns meta data for the underlying beanlet.
 

Method Detail

getBeanletMetaData

BeanletMetaData<T> getBeanletMetaData()
Returns meta data for the underlying beanlet.


create

BeanletReference<T> create()
                           throws BeanletCreationException
Creates a new beanlet reference for the underlying beanlet.

Returns:
a new beanlet reference for the underlying beanlet.
Throws:
BeanletCreationException - if beanlet could not be created for any reason.

create

BeanletReference<T> create(Map<String,?> info)
                           throws BeanletCreationException
Creates a new beanlet reference for the underlying beanlet.

Parameters:
info - map that contains parameters that can be injected into the beanlet instance.
Returns:
a new beanlet reference.
Throws:
BeanletCreationException - if beanlet could not be created for any reason.


Copyright © 2006-2012. All Rights Reserved.