com.sun.jersey.server.impl.application
Class CloseableServiceFactory

java.lang.Object
  extended by com.sun.jersey.server.impl.application.CloseableServiceFactory
All Implemented Interfaces:
CloseableService, Injectable<CloseableService>, InjectableProvider<Context,java.lang.reflect.Type>

public class CloseableServiceFactory
extends java.lang.Object
implements InjectableProvider<Context,java.lang.reflect.Type>, Injectable<CloseableService>, CloseableService

Author:
paulsandoz

Constructor Summary
CloseableServiceFactory(HttpContext context)
           
 
Method Summary
 void add(java.io.Closeable c)
           
 void close(HttpContext context)
           
 Injectable getInjectable(ComponentContext ic, Context a, java.lang.reflect.Type c)
           
 ComponentScope getScope()
           
 CloseableService getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableServiceFactory

public CloseableServiceFactory(@Context
                               HttpContext context)
Method Detail

getScope

public ComponentScope getScope()
Specified by:
getScope in interface InjectableProvider<Context,java.lang.reflect.Type>

getInjectable

public Injectable getInjectable(ComponentContext ic,
                                Context a,
                                java.lang.reflect.Type c)
Specified by:
getInjectable in interface InjectableProvider<Context,java.lang.reflect.Type>

getValue

public CloseableService getValue()
Specified by:
getValue in interface Injectable<CloseableService>

add

public void add(java.io.Closeable c)
Specified by:
add in interface CloseableService

close

public void close(HttpContext context)


Copyright © 2014 Oracle Corporation. All Rights Reserved.