public class BasicAclEntryHolder extends Object implements Serializable
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.
Constructor and Description |
---|
BasicAclEntryHolder(BasicAclEntry[] aclEntries)
Constructs the
BasicAclEntryHolder . |
Modifier and Type | Method and Description |
---|---|
BasicAclEntry[] |
getBasicAclEntries() |
public BasicAclEntryHolder(BasicAclEntry[] aclEntries)
BasicAclEntryHolder
.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)IllegalArgumentException
- if a null
exists anywhere
in the aclEntries
or if a null
is
passed to the constructorpublic BasicAclEntry[] getBasicAclEntries()
Copyright © 2014. All rights reserved.