org.apache.wicket.util.crypt
Class CryptFactoryCachingDecorator

java.lang.Object
  extended by org.apache.wicket.util.crypt.CryptFactoryCachingDecorator
All Implemented Interfaces:
ICryptFactory
Direct Known Subclasses:
CachingSunJceCryptFactory, NoCryptFactory

public class CryptFactoryCachingDecorator
extends Object
implements ICryptFactory

ICryptFactory decorator that caches the call to ICryptFactory.newCrypt()

Author:
Igor Vaynberg (ivaynberg)

Constructor Summary
CryptFactoryCachingDecorator(ICryptFactory delegate)
          Construct.
 
Method Summary
 ICrypt newCrypt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptFactoryCachingDecorator

public CryptFactoryCachingDecorator(ICryptFactory delegate)
Construct.

Parameters:
delegate - the crypt factory whose ICryptFactory.newCrypt() call will be cached
Method Detail

newCrypt

public final ICrypt newCrypt()
Specified by:
newCrypt in interface ICryptFactory
Returns:
new crypt object
See Also:
ICryptFactory.newCrypt()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.