ro.isdc.wro.model.resource.util
Class NoOpNamingStrategy

java.lang.Object
  extended by ro.isdc.wro.model.resource.util.NoOpNamingStrategy
All Implemented Interfaces:
NamingStrategy

public class NoOpNamingStrategy
extends Object
implements NamingStrategy

The simplest implementation of NamingStrategy which preserve the original name.

Author:
Alex Objelean

Constructor Summary
NoOpNamingStrategy()
           
 
Method Summary
 String rename(String originalName, InputStream inputStream)
          Creates a new name of the resource which encodes a version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpNamingStrategy

public NoOpNamingStrategy()
Method Detail

rename

public String rename(String originalName,
                     InputStream inputStream)
Creates a new name of the resource which encodes a version.

Specified by:
rename in interface NamingStrategy
Parameters:
originalName - original name of the resource.
inputStream - the stream of the content to rename.
Returns:
new name of the resource with version encoded.


Copyright © 2008-2011. All Rights Reserved.