ro.isdc.wro.util
Class AbstractDecorator<T>

java.lang.Object
  extended by 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

Constructor Summary
AbstractDecorator(T decorated)
           
 
Method Summary
 T getDecoratedObject()
           
 T getOriginalDecoratedObject()
           
static
<T> T
getOriginalDecoratedObject(T object)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDecorator

public AbstractDecorator(T decorated)
Method Detail

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.