|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.benow.java.spec.argument.ArgumentSpecification
org.benow.java.spec.MethodSpecification
org.benow.java.spec.SecureMethodSpecification
public class SecureMethodSpecification
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.benow.java.spec.MethodSpecification |
|---|
org.benow.java.spec.MethodSpecification.DefaultMethod, org.benow.java.spec.MethodSpecification.MethodArgumentSpecifier |
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
log
|
| Fields inherited from class org.benow.java.spec.MethodSpecification |
|---|
method |
| Fields inherited from class org.benow.java.spec.argument.ArgumentSpecification |
|---|
description |
| Constructor Summary | |
|---|---|
SecureMethodSpecification(java.lang.reflect.Method inMethod)
|
|
| Method Summary | |
|---|---|
void |
assertPermission()
|
Permission |
getPermission()
|
protected void |
introspectMethodSpec()
Looks at a method and creates a method specification consisting of argument specifications. |
java.lang.Object |
invoke(java.lang.Object on,
org.benow.java.spec.argument.ArgumentContext ctx)
|
static Permission |
resolvePermission(java.lang.String permFullName)
|
| Methods inherited from class org.benow.java.spec.MethodSpecification |
|---|
create, createSignature, createSignature, createSignature, getExceptionTypes, getReturnArgument, getSignature, getSimpleSignature, inClass |
| Methods inherited from class org.benow.java.spec.argument.ArgumentSpecification |
|---|
addArg, addHelpArg, createArgByType, createArgumentContext, getArgumentByName, getArguments, getArgumentValues, getDescription, getLastArg, getLastArgName, getName, hasArgument, hasLastArg, requireOneOf, setDisplay, setName, specArg, specArg, specArg, specArg, specArg, specArg, specArg, specLastArg, specLastArg, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public SecureMethodSpecification(java.lang.reflect.Method inMethod)
throws org.benow.java.spec.SpecificationException
org.benow.java.spec.SpecificationException| Method Detail |
|---|
public Permission getPermission()
public static Permission resolvePermission(java.lang.String permFullName)
throws org.benow.java.spec.SpecificationException
org.benow.java.spec.SpecificationException
protected void introspectMethodSpec()
throws org.benow.java.spec.SpecificationException
introspectMethodSpec in class org.benow.java.spec.MethodSpecificationSpecificationException
public java.lang.Object invoke(java.lang.Object on,
org.benow.java.spec.argument.ArgumentContext ctx)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.Throwable
invoke in class org.benow.java.spec.MethodSpecificationjava.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.Throwablepublic void assertPermission()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||