|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.clerezza.triaxrs.prefixmanager.TriaxrsPrefixManager
public class TriaxrsPrefixManager
This class provides a function to get the appropriate path prefix for a given bundle.
| Field Summary | |
|---|---|
static String |
TRIAXRS_MAPPINGS
Service property header, which contains the mappings between bundle symbolic names and bundle prefixes. |
static String |
TRIAXRS_USE_CUSTOM_PREFIXES
Service property header which specifies if the custom path prefix of bundles is used. |
static String |
TRIAXRS_USE_DEFAULT_PREFIXES
Service property header which specifies, if the default path prefix of bundles is used. |
| Constructor Summary | |
|---|---|
TriaxrsPrefixManager()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
The activate method is called when SCR activates the component configuration |
protected void |
bindConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
|
String |
getPrefix(org.osgi.framework.Bundle bundle)
Return the appropriate path prefix for the given bundle |
static Dictionary<String,String> |
parseMappings(String[] mappings)
|
protected void |
unbindConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
|
static String[] |
unparseMappings(Dictionary mappings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TRIAXRS_MAPPINGS
public static final String TRIAXRS_USE_DEFAULT_PREFIXES
public static final String TRIAXRS_USE_CUSTOM_PREFIXES
| Constructor Detail |
|---|
public TriaxrsPrefixManager()
| Method Detail |
|---|
public String getPrefix(org.osgi.framework.Bundle bundle)
getPrefix in interface org.apache.clerezza.jaxrs.extensions.prefixmanager.BundlePrefixManagerbundle -
public static Dictionary<String,String> parseMappings(String[] mappings)
public static String[] unparseMappings(Dictionary mappings)
protected void bindConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
protected void unbindConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configAdmin)
protected void activate(org.osgi.service.component.ComponentContext componentContext)
componentContext -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||