Class SingletonFactory

  • All Implemented Interfaces:
    Factory

    public class SingletonFactory
    extends Object
    implements Factory
    Always returns a single instance of the bean. This is generally the default.
    • Constructor Detail

      • SingletonFactory

        public SingletonFactory​(Object bean)
      • SingletonFactory

        public SingletonFactory​(Class<?> beanClass)
      • SingletonFactory

        public SingletonFactory​(Factory f)
    • Method Detail

      • release

        public void release​(Exchange ex,
                            Object o)
        Post invoke, this is called to allow the factory to release the object, store it, etc...
        Specified by:
        release in interface Factory
        o - object created from the create method