org.richfaces.resource.external

## Class MappedResourceFactoryImpl

- java.lang.Object
- - org.richfaces.resource.external.MappedResourceFactoryImpl

- All Implemented Interfaces:
    MappedResourceFactory, Initializable

      public class MappedResourceFactoryImpl
      extends Object
      implements MappedResourceFactory, Initializable

  Creates resources pointing outside of standard JSF resource handler.
  Author:
    Lukas Fryc

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MappedResourceFactoryImpl()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.faces.application.Resource` | `createResource(javax.faces.context.FacesContext context, ResourceKey resourceKey)` Creates external resource
    `Set<ResourceKey>` | `getAggregatedResources(ResourcePath resourcePath)` Get all resources which maps to same location
    `void` | `init()`
    `void` | `release()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MappedResourceFactoryImpl

          public MappedResourceFactoryImpl()

  - ### Method Detail

    - #### init

          public void init()

      Specified by:
        `init` in interface `Initializable`

    - #### release

          public void release()

      Specified by:
        `release` in interface `Initializable`

    - #### createResource

          public javax.faces.application.Resource createResource(javax.faces.context.FacesContext context,
                                                        ResourceKey resourceKey)

      Description copied from interface: `MappedResourceFactory`
      Creates external resource
      Specified by:
        `createResource` in interface `MappedResourceFactory`
      Parameters:
        `context` - `FacesContext`
        `resourceKey` - the resource key
      Returns:
        external resource for given resource key

    - #### getAggregatedResources

          public Set<ResourceKey> getAggregatedResources(ResourcePath resourcePath)

      Description copied from interface: `MappedResourceFactory`
      Get all resources which maps to same location
      Specified by:
        `getAggregatedResources` in interface `MappedResourceFactory`
      Returns:

Copyright © 2014 JBoss by Red Hat. All rights reserved.