net.northfuse.resources
Class ResourceGenerator

java.lang.Object
  extended by net.northfuse.resources.ResourceGenerator
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public final class ResourceGenerator
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware

Author:
tylers2

Constructor Summary
ResourceGenerator()
          Creates a resource generator.
 
Method Summary
 AggregatedResource getAggregatedResource(boolean debug)
          Builds the resource from all the given resources.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          
 void setResources(java.util.List<java.lang.String> resources)
          Sets the resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceGenerator

public ResourceGenerator()
Creates a resource generator.

Method Detail

setResources

public void setResources(java.util.List<java.lang.String> resources)
Sets the resources.

Parameters:
resources - The new resources to add

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

getAggregatedResource

public AggregatedResource getAggregatedResource(boolean debug)
Builds the resource from all the given resources.

Parameters:
debug - Whether or not in debug mode
Returns:
The constructed resource


Copyright © 2011. All Rights Reserved.