org.acegisecurity.acl.basic.cache
Class BasicAclEntryHolder
java.lang.Object
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 BasicAclEntry
s 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicAclEntryHolder
public BasicAclEntryHolder(BasicAclEntry[] aclEntries)
- Constructs the
BasicAclEntryHolder
.
- Parameters:
aclEntries
- to cache (any null
s will cause an
exception, which should not be a problem as the contract for
BasicAclEntryCache
allows exceptions if
null
s are presented)
- Throws:
IllegalArgumentException
- if a null
exists anywhere
in the aclEntries
or if a null
is
passed to the constructor
getBasicAclEntries
public BasicAclEntry[] getBasicAclEntries()
Copyright © 2004-2011 Interface21, Inc. All Rights Reserved.