Class BeanServiceImpl

java.lang.Object
overit.geocall.cdi.service.BeanServiceImpl
All Implemented Interfaces:
Serializable, BeanService

@Service public class BeanServiceImpl extends Object implements BeanService
Service used to create a new bean instance using the Factory or the CDI engine depending on the annotation defined for the bean type; Customizable annotated type will be instantiated via Factory; otherwise the bean will be instantiated by the CDI engine.
See Also:
  • Method Details

    • get

      public <T> T get(Class<T> type, String qualifier)
      Description copied from interface: BeanService
      Get a new bean instance for the given bean type
      Specified by:
      get in interface BeanService
      Type Parameters:
      T - the bean type
      Parameters:
      type - the bean class
      qualifier - the bean qualifier
      Returns:
      the bean instance
    • get

      public <T> T get(Class<T> type)
      Description copied from interface: BeanService
      Get a new bean instance for the given bean type
      Specified by:
      get in interface BeanService
      Type Parameters:
      T - the bean type
      Parameters:
      type - the bean class
      Returns:
      the bean instance