|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Behaviour
A Behaviour represents an encapsulated piece of logic (system or business) that may be bound to a Policy. The logic may be expressed in any language (java, script etc). Once bound to a Policy, the behaviour must be able to provide the interface declared by that policy.
| Nested Class Summary | |
|---|---|
static class |
Behaviour.NotificationFrequency
When should behaviour be notified? |
| Method Summary | |
|---|---|
void |
disable()
Disable the behaviour (for this thread only) |
void |
enable()
Enable the behaviour (for this thread only) |
java.lang.Object |
getInterface(java.lang.Class policy)
Gets the requested policy interface onto the behaviour |
Behaviour.NotificationFrequency |
getNotificationFrequency()
|
boolean |
isEnabled()
|
| Method Detail |
|---|
java.lang.Object getInterface(java.lang.Class policy)
policy - the policy interface class
void disable()
void enable()
boolean isEnabled()
Behaviour.NotificationFrequency getNotificationFrequency()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||