Class HubCRResource

java.lang.Object
com.zfabrik.resources.provider.Resource
com.zfabrik.impl.hubcr.store.HubCRResource

public class HubCRResource extends Resource
Life cycle of HubCR provider implementation. Also does JMX registration.

This resource may be loaded on home and worker. But the actual manager and the JMX beans will only be loaded on worker nodes (and otherwise throw an exception).

The following configurations are supported:

  • hubcr.eviction.delay - specifies the max keep time of older component revisions than the most current in hours. Defaults to 168h
  • hubcr.scanOnSync - if set to true, every sync completion will trigger an update of the HubCR
  • hubcr.ignore.types - Comma-separated list of component types to not put in the repository
  • hubcr.ignore.prefixes - Comma-separated list of component name prefixes to filter out components before putting them in the repository
By default the component types com.zfabrik.svncr, com.zfabrik.gitcr, com.zfabrik.hubcr as well as the prefix com.zfabrik.hubcr/ are in effect. Also, no components of the local repo will be served. Note, this is the serving side. See also ComponentRepositoryImpl on how to set up a consuming component repository.

To enable provisioning via the HubCR visit the manager configuration at com.zfabrik.hubcr/manager and enable the Web application com.zfabrik.hubcr/web by configuring a suitable state dependency. Please do not start the web app by a dependency declared outside of the served scope (which includes the module com.zfabrik.hubcr) as that will lead to unresolvable dependencies on the consuming side.

  • Constructor Details

    • HubCRResource

      public HubCRResource()
  • Method Details