|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.MacAdapter.EventHandlerAdapter
public static class MacAdapter.EventHandlerAdapter
Adapter for EAWT event handlers.
Field Summary | |
---|---|
private Action |
action
The action to invoke. |
private String |
signature
The signature of the method proxied. |
Constructor Summary | |
---|---|
MacAdapter.EventHandlerAdapter(String signature,
Action action)
Creates an event handler adapter that calls an action on invocation. |
Method Summary | |
---|---|
private boolean |
checkSignature(Method method,
Object[] args)
Checks if the invocation method and arguments match those of the event handler proxied. |
protected Object |
getEventSource(Object appleEvent)
Derives the action event source from the specified apple event. |
String |
getSignature()
Returns the signature of the event this proxy handles. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invokes the action that proxies this EAWT event handler and sets the event handled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Action action
private final String signature
Constructor Detail |
---|
public MacAdapter.EventHandlerAdapter(String signature, Action action)
action
- the action to call if a method is invoked.signature
- the signature of the method invoked.Method Detail |
---|
public String getSignature()
private boolean checkSignature(Method method, Object[] args)
method
- the method to invoke.args
- the arguments of the invocation.
true
if the signature matches the event handler proxied,
false
otherwise.protected Object getEventSource(Object appleEvent)
appleEvent
- the apple event object received at the handler.
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- the proxy instance that the method was invoked on, ignored.method
- the method instance corresponding to the interface method invoked
on the proxy instance, checked against the signature.args
- an array of objects containing the values of the arguments passed in the
method invocation on the proxy instance, checked for a single event object.
null
always.
Throwable
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG