Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.acl.basic.cache
Class EhCacheBasedAclEntryCache  view EhCacheBasedAclEntryCache download EhCacheBasedAclEntryCache.java

java.lang.Object
  extended byorg.acegisecurity.acl.basic.cache.EhCacheBasedAclEntryCache
All Implemented Interfaces:
org.acegisecurity.acl.basic.BasicAclEntryCache, org.springframework.beans.factory.InitializingBean

public class EhCacheBasedAclEntryCache
extends java.lang.Object
implements org.acegisecurity.acl.basic.BasicAclEntryCache, org.springframework.beans.factory.InitializingBean

Caches BasicAclEntrys using a Spring IoC defined EHCACHE.

Version:
$Id: EhCacheBasedAclEntryCache.java,v 1.5 2005/11/17 00:56:47 benalex Exp $

Field Summary
private  Cache cache
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
EhCacheBasedAclEntryCache()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 Cache getCache()
           
 org.acegisecurity.acl.basic.BasicAclEntry[] getEntriesFromCache(org.acegisecurity.acl.basic.AclObjectIdentity aclObjectIdentity)
          Obtains an array of org.acegisecurity.acl.basic.BasicAclEntrys from the cache.
 void putEntriesInCache(org.acegisecurity.acl.basic.BasicAclEntry[] basicAclEntry)
          Places an array of org.acegisecurity.acl.basic.BasicAclEntrys in the cache.
 void setCache(Cache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

cache

private Cache cache
Constructor Detail

EhCacheBasedAclEntryCache

public EhCacheBasedAclEntryCache()
Method Detail

setCache

public void setCache(Cache cache)

getCache

public Cache getCache()

getEntriesFromCache

public org.acegisecurity.acl.basic.BasicAclEntry[] getEntriesFromCache(org.acegisecurity.acl.basic.AclObjectIdentity aclObjectIdentity)
Description copied from interface: org.acegisecurity.acl.basic.BasicAclEntryCache
Obtains an array of org.acegisecurity.acl.basic.BasicAclEntrys from the cache.

Specified by:
getEntriesFromCache in interface org.acegisecurity.acl.basic.BasicAclEntryCache

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from interface: org.springframework.beans.factory.InitializingBean
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

putEntriesInCache

public void putEntriesInCache(org.acegisecurity.acl.basic.BasicAclEntry[] basicAclEntry)
Description copied from interface: org.acegisecurity.acl.basic.BasicAclEntryCache
Places an array of org.acegisecurity.acl.basic.BasicAclEntrys in the cache.

No nulls are allowed in the passed array. If any null is passed, the implementation may throw an exception.

Specified by:
putEntriesInCache in interface org.acegisecurity.acl.basic.BasicAclEntryCache