Class SingletonFactory

java.lang.Object
org.apache.cxf.service.invoker.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 Details

    • SingletonFactory

      public SingletonFactory(Object bean)
    • SingletonFactory

      public SingletonFactory(Class<?> beanClass)
    • SingletonFactory

      public SingletonFactory(Factory f)
  • Method Details

    • create

      public Object create(Exchange ex) throws Throwable
      Creates the object that will be used for the invoke
      Specified by:
      create in interface Factory
      Throws:
      Throwable
    • 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