|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.decoration.DecorationMgr
public class DecorationMgr
The decoration manager provides static methods that manage decorators. All decorators that are active in the system should run this this decoration manager. The decorationManager is an integral part of the JaspiraFramework
| Method Summary | |
|---|---|
static void |
addDecorator(Plugin provider,
java.lang.String key,
Decorator decorator)
Adds a decorator to the list of decorators. |
static java.lang.Object |
decorate(java.lang.Object owner,
java.lang.String key,
java.lang.Object value)
Decorates an object. |
static void |
removeDecorator(Plugin provider,
java.lang.String key,
Decorator decorator)
Removes a decorator from the list of decorators. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object decorate(java.lang.Object owner,
java.lang.String key,
java.lang.Object value)
owner - Owner of the object to decorate.
The decorator may use this to decide if the object should be dorated.
This parameter is passed to the Decorator.decorate(java.lang.Object, java.lang.String, java.lang.Object) method.key - Key under which the decorator is accessedvalue - Object to decorate (also passed to the Decorator.decorate(java.lang.Object, java.lang.String, java.lang.Object) method)
public static void addDecorator(Plugin provider,
java.lang.String key,
Decorator decorator)
provider - The plugin who installed this decorator or null.
If provided, the global.decoration.added event will be fired.key - Key under which the decorator is accesseddecorator - The decorator itself
public static void removeDecorator(Plugin provider,
java.lang.String key,
Decorator decorator)
provider - The plugin who installed this decorator or null.
If provided, the global.decoration.removed event will be fired.key - Key under which the decorator has been addeddecorator - The decorator itself
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||