org.acegisecurity.acl.basic.cache
Class BasicAclEntryHolder

java.lang.Object
  extended by org.acegisecurity.acl.basic.cache.BasicAclEntryHolder
All Implemented Interfaces:
Serializable

public class BasicAclEntryHolder
extends Object
implements Serializable

Used by EhCacheBasedAclEntryCache to store the array of BasicAclEntrys in the cache.

This is necessary because caches store a single object per key, not an array.

This class uses value object semantics. ie: construction-based initialisation without any setters for the properties.

Version:
$Id: BasicAclEntryHolder.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Ben Alex
See Also:
Serialized Form

Constructor Summary
BasicAclEntryHolder(BasicAclEntry[] aclEntries)
          Constructs the BasicAclEntryHolder.
 
Method Summary
 BasicAclEntry[] getBasicAclEntries()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAclEntryHolder

public BasicAclEntryHolder(BasicAclEntry[] aclEntries)
Constructs the BasicAclEntryHolder.

Parameters:
aclEntries - to cache (any nulls will cause an exception, which should not be a problem as the contract for BasicAclEntryCache allows exceptions if nulls are presented)
Throws:
IllegalArgumentException - if a null exists anywhere in the aclEntries or if a null is passed to the constructor
Method Detail

getBasicAclEntries

public BasicAclEntry[] getBasicAclEntries()


Copyright © 2004-2009 Interface21, Inc. All Rights Reserved.