com.sun.grizzly.filterchain
Class SingletonFilterChainFactory

java.lang.Object
  extended by com.sun.grizzly.filterchain.SingletonFilterChainFactory
All Implemented Interfaces:
FilterChainFactory, PatternFilterChainFactory

public class SingletonFilterChainFactory
extends Object
implements PatternFilterChainFactory

FilterChainFactory implementation, which operates just with a single FilterChain instance.

Author:
Alexey Stashok

Constructor Summary
SingletonFilterChainFactory()
           
SingletonFilterChainFactory(FilterChain chain)
           
 
Method Summary
 FilterChain create()
          Returns singleton chain instance (always the same).
 FilterChain getFilterChainPattern()
          Returns FilterChain pattern, which is chain instance.
 void release(FilterChain chain)
          Do nothing
 void setFilterChainPattern(FilterChain chain)
          Sets FilterChain pattern, which is chain instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonFilterChainFactory

public SingletonFilterChainFactory()

SingletonFilterChainFactory

public SingletonFilterChainFactory(FilterChain chain)
Method Detail

create

public FilterChain create()
Returns singleton chain instance (always the same).

Specified by:
create in interface FilterChainFactory
Returns:
singleton chain instance (always the same).

release

public void release(FilterChain chain)
Do nothing

Specified by:
release in interface FilterChainFactory

getFilterChainPattern

public FilterChain getFilterChainPattern()
Returns FilterChain pattern, which is chain instance.

Specified by:
getFilterChainPattern in interface PatternFilterChainFactory
Returns:
FilterChain pattern, which is chain instance.

setFilterChainPattern

public void setFilterChainPattern(FilterChain chain)
Sets FilterChain pattern, which is chain instance.

Specified by:
setFilterChainPattern in interface PatternFilterChainFactory
Parameters:
chain - FilterChain pattern, which is chain instance.


Copyright © 2009 SUN Microsystems. All Rights Reserved.