org.apache.aries.jndi.url
Class OsgiName

java.lang.Object
  extended by javax.naming.CompositeName
      extended by org.apache.aries.jndi.url.AbstractName
          extended by org.apache.aries.jndi.url.OsgiName
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Name

public final class OsgiName
extends AbstractName

A composite name for the aries namespace. This provides useful utility methods for accessing the name. component 0: osgi:service, aries:services, osgi:servicelist component 1: interface component 2: filter

See Also:
Serialized Form

Field Summary
static String ARIES_SCHEME
           
static String FRAMEWORK_PATH
           
static String OSGI_SCHEME
           
static String SERVICE_LIST_PATH
           
static String SERVICE_PATH
           
static String SERVICES_PATH
           
 
Constructor Summary
OsgiName(Name name)
           
OsgiName(String name)
           
 
Method Summary
 String getFilter()
           
 String getInterface()
           
 String getServiceName()
           
 boolean hasFilter()
           
 boolean hasInterface()
           
 boolean isServiceNameBased()
           
 
Methods inherited from class org.apache.aries.jndi.url.AbstractName
getScheme, getSchemePath
 
Methods inherited from class javax.naming.CompositeName
add, add, addAll, addAll, clone, compareTo, endsWith, equals, get, getAll, getPrefix, getSuffix, hashCode, isEmpty, remove, size, startsWith, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OSGI_SCHEME

public static final String OSGI_SCHEME
See Also:
Constant Field Values

ARIES_SCHEME

public static final String ARIES_SCHEME
See Also:
Constant Field Values

SERVICE_PATH

public static final String SERVICE_PATH
See Also:
Constant Field Values

SERVICES_PATH

public static final String SERVICES_PATH
See Also:
Constant Field Values

SERVICE_LIST_PATH

public static final String SERVICE_LIST_PATH
See Also:
Constant Field Values

FRAMEWORK_PATH

public static final String FRAMEWORK_PATH
See Also:
Constant Field Values
Constructor Detail

OsgiName

public OsgiName(String name)
         throws InvalidNameException
Throws:
InvalidNameException

OsgiName

public OsgiName(Name name)
         throws InvalidNameException
Throws:
InvalidNameException
Method Detail

hasFilter

public boolean hasFilter()

isServiceNameBased

public boolean isServiceNameBased()

getInterface

public String getInterface()

getFilter

public String getFilter()

getServiceName

public String getServiceName()

hasInterface

public boolean hasInterface()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.