org.jboss.system.server.profileservice.repository.clustered.local
Interface LocalContentManagerFactory<T extends SynchronizationActionContext>

All Known Implementing Classes:
FilesystemLocalContentManagerFactory

public interface LocalContentManagerFactory<T extends SynchronizationActionContext>

Factory for a LocalContentManager that understands a particular type of URI.

Version:
$Revision: $
Author:
Brian Stansberry

Method Summary
 boolean accepts(Collection<URI> uris)
          Indicates whether this factory can create a LocalContentManager that works with the given collection of URIs.
 LocalContentManager<T> getLocalContentManager(Map<String,URI> namedURIMap, org.jboss.profileservice.spi.ProfileKey profileKey, String localNodeName)
          Gets a LocalContentManager for the given set of URIs.
 

Method Detail

accepts

boolean accepts(Collection<URI> uris)
Indicates whether this factory can create a LocalContentManager that works with the given collection of URIs.

Parameters:
uris - the URIs. Cannot be null
Returns:
true if a persister can be created, false otherwise

getLocalContentManager

LocalContentManager<T> getLocalContentManager(Map<String,URI> namedURIMap,
                                              org.jboss.profileservice.spi.ProfileKey profileKey,
                                              String localNodeName)
Gets a LocalContentManager for the given set of URIs.

Parameters:
namedURIMap - the URIs to be managed, keyed by a unique identifier
profileKey - key of the Profile associated with the content
localNodeName - cluster-wide unique name for this node
Returns:
the content manager


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.