Class RepositoryConnectionFactory
RepositoryClient and RepositoryMember.
The RepositoryClient or RepositoryMember returned can be
held for a reasonable amount of time, and changes to the collective feature
configuration will be gracefully handled.
The RepositoryConnectionFactory is also exposed as an OSGi service so that consumers of the service can block until the RepositoryConnectionFactory is ready, that is at least the RepositoryClient and RepositoryMember are available.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryClientRetrieve a RepositoryClient connection.static RepositoryMemberRetrieve a RepositoryMember connection.Instance method used to invokegetRepositoryClient().Instance method used to invokegetRepositoryMember().
-
Constructor Details
-
RepositoryConnectionFactory
public RepositoryConnectionFactory()
-
-
Method Details
-
getRepositoryClient
Retrieve a RepositoryClient connection.If no implementation is available,
nullwill be returned and an error message will be logged.- Returns:
RepositoryClientimplementation if available,nullotherwise.
-
obtainRepositoryClient
Instance method used to invokegetRepositoryClient().This method is used for obtaining the RepositoryClient when the RepositoryConnectionFactory is used as a service.
- See Also:
-
getRepositoryMember
Retrieve a RepositoryMember connection.If no implementation is available,
nullwill be returned and an error message will be logged.- Returns:
RepositoryMemberimplementation if available,nullotherwise.
-
obtainRepositoryMember
Instance method used to invokegetRepositoryMember().This method is used for obtaining the RepositoryMember when the RepositoryConnectionFactory is used as a service.
- See Also:
-