WorkingWithGit - wro4j - wro4j. readthedocs. io Main project page is hosted by google code, but the main development occurs on github, mostly because github was the first code collaboration application using git SCM This page describes how git is used by wro4j and the details about branching naming conventions and way of working Details Conventions: * The project has more than one branch
OutputNamingStrategy - wro4j - Read the Docs This page describes how to control the name of the processed resources generated by wro4j-maven-plugin By default, wro4j maven plugin generates resources with the same name the group has in wro xml file For instance, if you have defined a group named *all":
ExtensionsAwareProcessorDecorator - wro4j By default wro4j deals with two types of resources: CSS JS Therefore, if a processor is annotated with @SupportedResourceType(ResourceType JS), then it will be applied on all js resources Similarly, when a processor is annotated with @SupportedResourceType(ResourceType CSS) - then it will be applied for all css resources
ManageResourcesWithoutRestartingServer - wro4j If accidentally, the model is broken (becomes invalid), the wro4j doesn't crash, but use instead the latest known good version of your model This is the reason why you are extending FallbackAwareXmlModelFactory Conclusion This page describes how wro4j can help you to manage your static resources without ever restarting the server
WroServletContextListener - wro4j - wro4j. readthedocs. io Introduction When using runtime configuration (with filter), it is possible to configure wro4j with a ServletContextListener Besides the alternative configuration, it also has the advantage of adding WroConfiguration WroManagerFactory objects as attributes to ServletContext This can be useful when you want to access these objects outside of the filter (example: using a jsp tag or in a servlet)
WorkingWithGit - wro4j - wro4j. readthedocs. io Main project page is hosted by google code, but the main development occurs on github, mostly because github was the first code collaboration application using git SCM This page describes how git is used by wro4j and the details about branching naming conventions and way of working Details Conventions: * The project has more than one branch
RubySassCss - wro4j - Read the Docs A better work around is to avoid using @import, and instead use the RubySassCssProcessor as a post processor and let wro4j perform the merging of your sass stylesheets before they are run through the processor Integration Like all of the wro4j extension processors the RubySassCssProcessor can be configured in a variety of ways
ProcessorDecorators - wro4j - wro4j. readthedocs. io Introduction A processor decorator implements decorator design pattern When it decorates a preprocessor it acts as a preprocessor and the same is true for postprocessor
IsWro4jSlow - wro4j - Read the Docs Most of the processors are fast (All processors from the wro4j-core module are fast), like jsMin, cssMin, cssUrlRewriting There are also slow processors It is important to understand which of them are slow and can cause a performance penalty The wro4j-extensions module contains a dozen of additional processors, some of them being slow In
ConfigureWro4jViaSpring - wro4j - wro4j. readthedocs. io Using Spring to configure wro4j makes it easy to have different debug and cache settings based on the environment in which you run, as it moves the configuration from your web xml to your Spring application xml – which allows you to use the !PropertyPlaceholderConfigurer to obtain the desired runtime binding of configuration values Details
UsingWro4jWithAnt - wro4j - wro4j. readthedocs. io Introduction Using wro4j with Ant build tool is not supported out of the box, but you can easily use it with wro4j-runner help Below is a configuration example:
RegisterCustomProcessors - wro4j - Read the Docs Introduction Note: the feature described on this page is available since wro4j-1 4 7 An alternative way to configure custom processors, is to register each processor with an associated alias as a service (for this the ServiceRegistry is used) It is possible to create custom !ServiceRegistry implementation which allows simple way of registering processors along with corresponding aliases
MavenPluginCustomization - wro4j - Read the Docs Introduction Here you will find several use-cases and implementation examples Use a Custom Resource Processor If you have a use-case, where you need to run a single custom processor (called !MyCustomPostProcessor) on all resources found in the model, you have to follow these steps:
JsonWroModel - wro4j - Read the Docs The class handling the creation of wroModel from a JSON object is called JsonModelFactory This class is located in wro4j-extensions project, because it requires gson jar dependency (from google) In order to switch from xml model creation, to json model creation you have to override the newModelFactory method from BaseWroManagerFactory class:
HandlebarsJsProcessor - wro4j - wro4j. readthedocs. io The HandlebarsJsProcessor is available since wro4j-1 4 7 and uses the handlebars js library written in javascript The processor uses Rhino to interpret the javascript into Java The processor can be used as both: pre post processor