[
https://issues.apache.org/jira/browse/SLING-3994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marius Petria updated SLING-3994:
---------------------------------
Attachment: SLING-3994.patch
A factory should bind to osgi services using target properties and configure
the components built on the fly with inline properties.
{code}
{
"jcr:primaryType": "sling:OsgiConfig",
"name": "publish",
"packageExporter": [
"type=local",
"packageBuilder/type=vlt",
"packageBuilder/servicename=replicationService"
],
"packageImporter": [
"type=remote",
"endpoints[0]=http://localhost:4503/libs/sling/replication/services/importers/default",
"authenticationProvider/type=service",
"packageBuilder/type=vlt",
"packageBuilder/servicename=replicationService"
],
"queueProvider.target" : "(name=sjh)",
"queueDistributionStrategy.target": "(name=error)",
"transportAuthenticationProvider.target" : "(name=publishAdmin)"
}
{code}
> Simplify dependency management by letting the caller to supply its own
> implementations
> ---------------------------------------------------------------------------------------
>
> Key: SLING-3994
> URL: https://issues.apache.org/jira/browse/SLING-3994
> Project: Sling
> Issue Type: Improvement
> Components: Replication
> Reporter: Marius Petria
> Labels: replication
> Attachments: SLING-3994.patch
>
>
> Replication core bundle exposes a generic component factory that creates a
> replication component based on a properties map.
> The caller of createComponent can also provide a map of default
> implementations for some services (this is done by passing a
> componentProvider).
> This allows to define specialized osgi factories that bind directly to
> services and simplifies dependency management.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)