2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.extensibility
Class ContextClassLoaderServiceDiscoverer.ServiceDeclarationImpl
java.lang.Object
org.apache.tuscany.sca.extensibility.ContextClassLoaderServiceDiscoverer.ServiceDeclarationImpl
- All Implemented Interfaces:
- ServiceDeclaration
- Enclosing class:
- ContextClassLoaderServiceDiscoverer
public class ContextClassLoaderServiceDiscoverer.ServiceDeclarationImpl
- extends java.lang.Object
- implements ServiceDeclaration
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 |
ContextClassLoaderServiceDiscoverer.ServiceDeclarationImpl
public ContextClassLoaderServiceDiscoverer.ServiceDeclarationImpl(java.net.URL url,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> attributes)
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
getLocation
public java.net.URL getLocation()
- Specified by:
getLocation
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getResource
public java.net.URL getResource(java.lang.String name)
- Specified by:
getResource
in interface ServiceDeclaration