|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.hammurapi.convert.DecoratingService
public class DecoratingService
Decorates objects based on their type and decoration providers available. Decoration is done with dynamic proxies.
Field Summary | |
---|---|
static Decorator |
DECORATOR
Converter which delegates to convert() method. |
Constructor Summary | |
---|---|
DecoratingService()
|
Method Summary | |
---|---|
static java.lang.Object |
decorate(java.lang.Object obj)
Decorates object using static decoration providers from the object's class classloader. |
static java.lang.Object |
decorate(java.lang.Object obj,
java.lang.ClassLoader classLoader)
Decorates object using providers from the given classloader. |
static java.lang.Object |
decorate(java.lang.Object obj,
Context context)
Decorates object using static decoration providers from the object's class classloader. |
static java.lang.Object |
decorate(java.lang.Object obj,
Context context,
java.lang.ClassLoader classLoader)
Decorates object using given context for dynamic decorators and given class loader to load decorating providers. |
static Decorator |
getDecorator()
Creates decorating closure. |
static Decorator |
getDecorator(java.lang.ClassLoader classLoader)
Creates decorating closure. |
static Decorator |
getDecorator(Context context)
Creates decorating closure. |
static Decorator |
getDecorator(Context context,
java.lang.ClassLoader classLoader)
Creates decorating closure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Decorator DECORATOR
Constructor Detail |
---|
public DecoratingService()
Method Detail |
---|
public static java.lang.Object decorate(java.lang.Object obj)
obj
- Object to be decorated
public static java.lang.Object decorate(java.lang.Object obj, Context context)
obj
- Object to be decoratedcontext
- Context for dynamic decorators.
public static java.lang.Object decorate(java.lang.Object obj, java.lang.ClassLoader classLoader)
obj
- Object to decorate.classLoader
- Class loader.
public static java.lang.Object decorate(java.lang.Object obj, Context context, java.lang.ClassLoader classLoader)
obj
- Object to decorate.context
- Context for dynamic decorators.classLoader
- Class loader.
public static Decorator getDecorator()
public static Decorator getDecorator(java.lang.ClassLoader classLoader)
classLoader
- Class loader.
public static Decorator getDecorator(Context context)
context
- Context for dynamic decorators.
public static Decorator getDecorator(Context context, java.lang.ClassLoader classLoader)
context
- Context for dynamic decorators.classLoader
- Class loader.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |