public class BundleProtectionDomain extends ProtectionDomain implements BundleReference
This class is not intended to be extended by clients.
| Constructor and Description |
|---|
BundleProtectionDomain(PermissionCollection permCollection)
Deprecated.
|
BundleProtectionDomain(PermissionCollection permCollection,
CodeSource codeSource,
Bundle bundle)
Constructs a special ProtectionDomain for a bundle.
|
| Modifier and Type | Method and Description |
|---|---|
Bundle |
getBundle()
Returns the
Bundle object associated with this
BundleReference. |
void |
setBundle(Bundle bundle)
Sets the bundle object associated with this protection domain.
|
getClassLoader, getCodeSource, getPermissions, getPrincipals, implies, toStringpublic BundleProtectionDomain(PermissionCollection permCollection)
BundleProtectionDomain(PermissionCollection, CodeSource, Bundle)permCollection - the PermissionCollection for the Bundlepublic BundleProtectionDomain(PermissionCollection permCollection, CodeSource codeSource, Bundle bundle)
permCollection - the PermissionCollection for the BundlecodeSource - the code source for this domain, may be nullbundle - the bundle associated with this domain, may be nullpublic void setBundle(Bundle bundle)
bundle - the bundle object associated with this protection domainpublic Bundle getBundle()
BundleReferenceBundle object associated with this
BundleReference.getBundle in interface BundleReferenceBundle object associated with this
BundleReference.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.