|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.container.InterceptorFactory
public class InterceptorFactory
A factory class for interceptor.
Field Summary | |
---|---|
protected boolean |
disposableRegistered
Whether the disposable is registered. |
protected static InterceptorFactory |
instance
The instance. |
static String |
INTERCEPTOR_FACTORY_KEY
The key for interceptor factory class. |
protected ConcurrentHashMap<String,Interceptor> |
interceptorCache
The cache for interceptor. |
Constructor Summary | |
---|---|
InterceptorFactory()
Constructor. |
Method Summary | |
---|---|
protected Interceptor |
createInterceptor(Class<?> interceptorClass)
Creates an interceptor. |
void |
dispose()
Disposes resource. |
static InterceptorFactory |
getInstance()
Returns the instance. |
Interceptor |
getInterceptor(Class<?> interceptorClass)
Returns the interceptor. |
protected static void |
initialize()
Initializes this class. |
void |
registerDisposable()
Registers disposable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INTERCEPTOR_FACTORY_KEY
protected static InterceptorFactory instance
protected boolean disposableRegistered
protected ConcurrentHashMap<String,Interceptor> interceptorCache
Constructor Detail |
---|
public InterceptorFactory()
Method Detail |
---|
protected static void initialize()
public static InterceptorFactory getInstance()
public void registerDisposable()
public void dispose()
Disposable
dispose
in interface Disposable
public Interceptor getInterceptor(Class<?> interceptorClass) throws NullPointerException
interceptorClass
- the interceptor class
NullPointerException
- if the interceptorClass parameter is nullprotected Interceptor createInterceptor(Class<?> interceptorClass)
interceptorClass
- the interceptor class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |