Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cxf.service.invoker
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 Summary
`SingletonFactory(Class<?> beanClass)`
`SingletonFactory(Factory f)`
`SingletonFactory(Object bean)`

Method Summary
`Object` | `create(Exchange ex)` Creates the object that will be used for the invoke
`void` | `release(Exchange ex, Object o)` Post invoke, this is called to allow the factory to release the object, store it, etc...

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SingletonFactory

    public SingletonFactory(Object bean)

### SingletonFactory

    public SingletonFactory(Class<?> beanClass)

### SingletonFactory

    public SingletonFactory(Factory f)

Method Detail

### create

    public Object create(Exchange ex)
                  throws Throwable

  Creates the object that will be used for the invoke

  Specified by:
    `create` in interface `Factory`
  Returns:
  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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Apache CXF API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Apache CXF