ro.isdc.wro.util
Class AbstractDecorator<T>
java.lang.Object
ro.isdc.wro.util.AbstractDecorator<T>
- All Implemented Interfaces:
- ObjectDecorator<T>
- Direct Known Subclasses:
- AbstractProcessorDecoratorSupport, CacheKeyFactoryDecorator, CacheStrategyDecorator, DefaultWroModelFactoryDecorator, LazyProcessorDecorator, LazyRequestHandlerDecorator, LazyWroModelFactoryDecorator, WroManagerFactoryDecorator, WroModelFactoryDecorator
public abstract class AbstractDecorator<T>
- extends Object
- implements ObjectDecorator<T>
Templated decorator.
- Since:
- 1.4.6
- Author:
- Alex Objelean
AbstractDecorator
public AbstractDecorator(T decorated)
getDecoratedObject
public final T getDecoratedObject()
- Specified by:
getDecoratedObject
in interface ObjectDecorator<T>
- Returns:
- the decorated object.
getOriginalDecoratedObject
public final T getOriginalDecoratedObject()
- Specified by:
getOriginalDecoratedObject
in interface ObjectDecorator<T>
- Returns:
- the object which is was originally decorated and is not a decorator itself.
getOriginalDecoratedObject
public static <T> T getOriginalDecoratedObject(T object)
- Returns:
- the object which is was originally decorated and is not a decorator itself.
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2008-2013. All Rights Reserved.