@Service(value=PlatformConfig.class) public class PlatformConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_GRAPH_FILTER
A filter that can be used to get the config graph as OSGi service,
that is provided by
org.apache.clerezza.rdf.core.access.TcManager . |
static UriRef |
CONFIG_GRAPH_URI
Deprecated.
use org.apache.clerezza.platform.Contants instead
|
Constructor and Description |
---|
PlatformConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext) |
void |
addBaseUri(UriRef baseUri)
Adds a base URI to the Clerezza platform instance.
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext) |
Set<UriRef> |
getBaseUris()
Returns the base URIs of the Clerezza platform instance.
|
UriRef |
getDefaultBaseUri()
Returns the default base URI of the Clerezza platform instance.
|
GraphNode |
getPlatformInstance()
Returns the platforminstance as
GraphNode of the system
graph (a LockableMGraph). |
void |
removeBaseUri(UriRef baseUri)
Removes a base URI from the Clerezza platform instance.
|
@Deprecated public static final UriRef CONFIG_GRAPH_URI
public static final String CONFIG_GRAPH_FILTER
org.apache.clerezza.rdf.core.access.TcManager
.public UriRef getDefaultBaseUri()
public GraphNode getPlatformInstance()
GraphNode
of the system
graph (a LockableMGraph). Access controls applies to the system graph
instance underlying the GraphNode
.public Set<UriRef> getBaseUris()
public void addBaseUri(UriRef baseUri)
baseUri
- The base URI which will be added to the platform instancepublic void removeBaseUri(UriRef baseUri)
baseUri
- The base URI which will be removed from the platform instanceprotected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.