org.apache.tuscany.sca.extensibility.equinox
Class EquinoxServiceDiscoverer.ServiceDeclarationImpl

java.lang.Object
  extended by org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer.ServiceDeclarationImpl
All Implemented Interfaces:
ServiceDeclaration
Enclosing class:
EquinoxServiceDiscoverer

public static class EquinoxServiceDiscoverer.ServiceDeclarationImpl
extends java.lang.Object
implements ServiceDeclaration


Constructor Summary
EquinoxServiceDiscoverer.ServiceDeclarationImpl(Bundle bundle, java.net.URL url, java.lang.String className, java.util.Map<java.lang.String,java.lang.String> attributes)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Get all attributes (name=value pairs) defined for the given entry
 java.lang.String getClassName()
           
 java.net.URL getLocation()
           
 java.net.URL getResource(java.lang.String name)
           
 java.lang.Class<?> loadClass()
          Get the java class for the service impl
 java.lang.Class<?> loadClass(java.lang.String className)
          Load a java class in the same context as the service definition
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.extensibility.ServiceDeclaration
equals, hashCode
 

Constructor Detail

EquinoxServiceDiscoverer.ServiceDeclarationImpl

public EquinoxServiceDiscoverer.ServiceDeclarationImpl(Bundle bundle,
                                                       java.net.URL url,
                                                       java.lang.String className,
                                                       java.util.Map<java.lang.String,java.lang.String> attributes)
Method Detail

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Description copied from interface: ServiceDeclaration
Get all attributes (name=value pairs) defined for the given entry

Specified by:
getAttributes in interface ServiceDeclaration
Returns:
All attributes keyed by name

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface ServiceDeclaration

loadClass

public java.lang.Class<?> loadClass()
                             throws java.lang.ClassNotFoundException
Description copied from interface: ServiceDeclaration
Get the java class for the service impl

Specified by:
loadClass in interface ServiceDeclaration
Returns:
The java class
Throws:
java.lang.ClassNotFoundException

loadClass

public java.lang.Class<?> loadClass(java.lang.String className)
                             throws java.lang.ClassNotFoundException
Description copied from interface: ServiceDeclaration
Load a java class in the same context as the service definition

Specified by:
loadClass in interface ServiceDeclaration
Parameters:
className - The class name
Returns:
The loaded class
Throws:
java.lang.ClassNotFoundException

getLocation

public java.net.URL getLocation()
Specified by:
getLocation in interface ServiceDeclaration

getResource

public java.net.URL getResource(java.lang.String name)
Specified by:
getResource in interface ServiceDeclaration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object