|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.slide.common.Namespace
Namespace class.
Field Summary | |
static java.lang.String |
CONTENT_STORE
|
static java.lang.String |
LOCK_STORE
|
static java.lang.String |
NODE_STORE
|
static java.lang.String |
REFERENCE
|
static java.lang.String |
REVISION_DESCRIPTOR_STORE
|
static java.lang.String |
REVISION_DESCRIPTORS_STORE
|
static java.lang.String |
SECURITY_STORE
|
Constructor Summary | |
(package private) |
Namespace()
Constructor. |
Method Summary | |
void |
clearNamespace()
Reinitialize namespace. |
(package private) void |
clearUriCache()
Clear uri cache. |
void |
connectService(Service service)
Connects a data source on demand. |
void |
disconnectServices()
Disconnects all services. |
(package private) NamespaceConfig |
getConfig()
Returns the namespace configuration. |
java.lang.String |
getName()
Gets the qulified name of the namespace. |
javax.transaction.TransactionManager |
getTransactionManager()
Transaction manager accessor. |
Uri |
getUri(java.lang.String uri)
Builds a new uri object to access this namespace. |
void |
initializeServices()
At the end of the service registration, this service is called to perform any required initialization task. |
(package private) void |
loadBaseData(Configuration namespaceBaseDataDefinition)
Parses the contents of the specified reader, and uses that info to initialize the specified Slide namespace. |
(package private) void |
loadConfiguration(Configuration namespaceConfigurationDefinition)
Parses the contents of the specified reader, and uses that info to initialize the specified Slide namespace. |
(package private) void |
loadDefinition(Configuration definition)
Parses the contents of the specified definition object, and uses that info to initialize the namespace. |
void |
registerStore(java.lang.Class storeClass,
java.util.Hashtable parameters,
Scope scope,
java.util.Hashtable childStores)
Used to register a Store in the namespace for the specified scope. |
Store |
retrieveStore(Scope scope)
Get the Data Source associated with the given scope, if any. |
void |
setName(java.lang.String name)
Sets the qualified name of the namespace. |
void |
unregisterStore(Scope scope)
Remove a Store from the registry. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final java.lang.String REFERENCE
public static final java.lang.String NODE_STORE
public static final java.lang.String SECURITY_STORE
public static final java.lang.String LOCK_STORE
public static final java.lang.String REVISION_DESCRIPTORS_STORE
public static final java.lang.String REVISION_DESCRIPTOR_STORE
public static final java.lang.String CONTENT_STORE
Constructor Detail |
Namespace()
Method Detail |
public void setName(java.lang.String name)
name
- Name of the namespacepublic java.lang.String getName()
NamespaceConfig getConfig()
public javax.transaction.TransactionManager getTransactionManager()
public void registerStore(java.lang.Class storeClass, java.util.Hashtable parameters, Scope scope, java.util.Hashtable childStores) throws ServiceRegistrationFailedException, ServiceParameterErrorException, ServiceParameterMissingException
storeClass
- Class of the Data Sourceparameters
- Init parameters for the Data Sourcescope
- Scope for which the Data Source is registeredchildStores
- Instances of the typed storesServiceRegistrationFailed
- An error occured during
instantiation of the serviceServiceParameterErrorException
- Incorrect service parameterServiceParameterMissingException
- Service parameter missingpublic void initializeServices() throws ServicesInitializationFailedException
ServicesInitializationFailedException
- One or more
exception occured while initializing servicespublic void clearNamespace()
public void connectService(Service service) throws ServiceConnectionFailedException, ServiceAccessException
service
- Service on which a connection attempt will be madeServiceConnectionFailedException
- Error connecting serviceServiceAccessException
- Unspecified low level service
access exceptionpublic void disconnectServices() throws ServicesShutDownFailedException
ServicesShutDownFailedException
- Error disconnecting one or
more servicespublic void unregisterStore(Scope scope) throws ServiceDisconnectionFailedException, ServiceAccessException
scope
- Scope to disconnectServiceDisconnctionFailedException
- Error disconnecting
DescriptorsStoreServiceAccessException
- Unspecified error during
service accesspublic Store retrieveStore(Scope scope) throws ServiceConnectionFailedException, ServiceAccessException
scope
- Scope to matchServiceConnectionFailedException
- Connection to Store failedServiceAccessException
- Unspecified service access exceptionpublic Uri getUri(java.lang.String uri)
uri
- Requested Urivoid clearUriCache()
void loadDefinition(Configuration definition) throws SlideException, ConfigurationException
definition
- Definiton of the scopes and stores of
the namespaceSlideException
- Something went wrong during registry or
services initializationConfigurationException
- Error parsing configuration filevoid loadBaseData(Configuration namespaceBaseDataDefinition) throws SlideException, ConfigurationException
namespaceBaseDataDefinition
- Namespace base dataSlideException
- Something went wrong during registry or
services initializationvoid loadConfiguration(Configuration namespaceConfigurationDefinition) throws SlideException
namespaceBaseDataDefinition
- Namespace base dataSlideException
- Something went wrong during registry or
services initialization
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |