org.eclipse.equinox.log
Class LogPermission

java.lang.Object
  extended by java.security.Permission
      extended by org.eclipse.equinox.log.LogPermission
All Implemented Interfaces:
Serializable, Guard

public class LogPermission
extends Permission

Indicates a bundle's authority to log on behalf of other bundles. This permission has only a single action: LOG.

Since:
3.7
See Also:
Serialized Form

Field Summary
static String LOG
          The action string log.
 
Constructor Summary
LogPermission(String name, String actions)
          Create a new LogPermission.
 
Method Summary
 boolean equals(Object obj)
           
 String getActions()
           
 int hashCode()
           
 boolean implies(Permission permission)
           
 PermissionCollection newPermissionCollection()
           
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final String LOG
The action string log.

See Also:
Constant Field Values
Constructor Detail

LogPermission

public LogPermission(String name,
                     String actions)
Create a new LogPermission.

Parameters:
name - Name must be "*".
actions - log or "*".
Method Detail

equals

public boolean equals(Object obj)
Specified by:
equals in class Permission

getActions

public String getActions()
Specified by:
getActions in class Permission

hashCode

public int hashCode()
Specified by:
hashCode in class Permission

implies

public boolean implies(Permission permission)
Specified by:
implies in class Permission

newPermissionCollection

public PermissionCollection newPermissionCollection()
Overrides:
newPermissionCollection in class Permission


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.