org.apache.muse.core.platform.osgi.routing
Class OSGiResourceIdFactory
java.lang.Object
org.apache.muse.core.platform.osgi.routing.OSGiResourceIdFactory
- All Implemented Interfaces:
- ResourceIdFactory
public class OSGiResourceIdFactory
- extends Object
- implements ResourceIdFactory
OSGiResourceIdFactory is a simple ID factory that tracks ID values by Bundle
- Author:
- Joel Hawkins (joelh)
- See Also:
ResourceIdFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundleToCounterMap
protected HashMap bundleToCounterMap
name
protected String name
OSGiResourceIdFactory
public OSGiResourceIdFactory()
OSGiResourceIdFactory
public OSGiResourceIdFactory(String name)
getIdentifierName
public QName getIdentifierName()
- returns the QName for the ID factory's identifiers
- Specified by:
getIdentifierName
in interface ResourceIdFactory
- Returns:
- the factory's resource id QName
getNextIdentifier
public String getNextIdentifier()
- returns the next identifier as a string. This method uses the thread local Bundle from
the
OSGiReflectUtilHelper as the key to find the next counter to increment
if there is no active bundle, then a global counter is used
- Specified by:
getNextIdentifier
in interface ResourceIdFactory
- Returns:
- the next identifier for the current thread's Bundle
- See Also:
OSGiReflectUtilHelper.getThreadLocalBundle()
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.