|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 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. |
| 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 Object decorate(Object obj)
obj - Object to be decorated
public 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||