public class DecoratingService extends Object
| Modifier and Type | Field and Description |
|---|---|
static Decorator |
DECORATOR
Converter which delegates to convert() method.
|
| Constructor and Description |
|---|
DecoratingService() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
decorate(Object obj)
Decorates object using static decoration providers from the object's class
classloader.
|
static Object |
decorate(Object obj,
ClassLoader classLoader)
Decorates object using providers from the given classloader.
|
static Object |
decorate(Object obj,
Context context)
Decorates object using static decoration providers from the object's class
classloader.
|
static Object |
decorate(Object obj,
Context context,
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(ClassLoader classLoader)
Creates decorating closure.
|
static Decorator |
getDecorator(Context context)
Creates decorating closure.
|
static Decorator |
getDecorator(Context context,
ClassLoader classLoader)
Creates decorating closure.
|
public DecoratingService()
public static Object decorate(Object obj)
obj - Object to be decoratedpublic static Object decorate(Object obj, Context context)
obj - Object to be decoratedcontext - Context for dynamic decorators.public static Object decorate(Object obj, ClassLoader classLoader)
obj - Object to decorate.classLoader - Class loader.public static Object decorate(Object obj, Context context, ClassLoader classLoader)
obj - Object to decorate.context - Context for dynamic decorators.classLoader - Class loader.public static Decorator getDecorator()
public static Decorator getDecorator(ClassLoader classLoader)
classLoader - Class loader.public static Decorator getDecorator(Context context)
context - Context for dynamic decorators.public static Decorator getDecorator(Context context, ClassLoader classLoader)
context - Context for dynamic decorators.classLoader - Class loader.