@Services(value={@Service(value=java.lang.Object.class),@Service(value=UserContextProvider.class)}) @Property(name="javax.ws.rs", boolValue=true) public class LanguageWidget extends Object implements UserContextProvider
Constructor and Description |
---|
LanguageWidget() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
GraphNode |
addUserContext(GraphNode node)
Returns a
GraphNode containing user context information in
addition to the information already existing in the provided
GraphNode . |
org.wymiwyg.commons.util.dirbrowser.PathNode |
getStaticFile(String path)
Returns a PathNode of a static file from the staticweb folder.
|
protected void activate(org.osgi.service.component.ComponentContext context) throws IOException, URISyntaxException
IOException
URISyntaxException
public GraphNode addUserContext(GraphNode node)
UserContextProvider
GraphNode
containing user context information in
addition to the information already existing in the provided
GraphNode
.
The information previously existing in the provided GraphNode
are not changed by this method.
The method may add the context information directly to the provided
GraphNode
or create a new GraphNode
instance,
in the latter the returned GraphNode must be modifiable.
In both cases the resulting GraphNode
is returned by the
method.addUserContext
in interface UserContextProvider
node
- The graph of the specified GraphNode will not be locked, neither for reading nor writing.
It is the responsibility of the calling function to set the write lock, if necessary.public org.wymiwyg.commons.util.dirbrowser.PathNode getStaticFile(String path)
path
- specifies the path param of a URIPathNode
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.