chemaxon.marvin.services.localservice
Class LocalServiceDescriptor

java.lang.Object
  extended by chemaxon.marvin.services.ServiceDescriptor
      extended by chemaxon.marvin.services.localservice.LocalServiceDescriptor

public class LocalServiceDescriptor
extends chemaxon.marvin.services.ServiceDescriptor

Service Descriptor for java based local services. Functions implemented in separate jar files can be used as service via this descriptor class.

Since:
5.6
Author:
Istvan Rabel

Field Summary
static String CLASS
          Property key for Service class name as String
 
Fields inherited from class chemaxon.marvin.services.ServiceDescriptor
ALIAS, ARGUMENTS, DESCRIPTION, METHOD, NAME, propertyChangeSupport, URL
 
Constructor Summary
LocalServiceDescriptor()
           
 
Method Summary
 String getClassName()
          Returns the full class name of the service
 Icon getIcon()
          Returns the icon of service descriptor or null if no icon
 ServiceHandler<LocalServiceDescriptor> getServiceHandler()
          Returns a service handler instance for this descriptor.
 String getSimpleName()
          Returns the simple name of the service type
 void setClassName(String className)
          Sets the full class name of the service
 
Methods inherited from class chemaxon.marvin.services.ServiceDescriptor
addArgument, getAlias, getArgument, getArgumentCount, getArguments, getDescription, getMethodName, getName, getProperty, getPropertyChangeSupport, getPropertyKeys, getURL, isAvailable, removeArgument, setAlias, setArgument, setDescription, setMethodName, setName, setProperty, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS

public static final String CLASS
Property key for Service class name as String

See Also:
Constant Field Values
Constructor Detail

LocalServiceDescriptor

public LocalServiceDescriptor()
Method Detail

getClassName

public String getClassName()
Returns the full class name of the service

Returns:
the full class name of the service

setClassName

public void setClassName(String className)
Sets the full class name of the service

Parameters:
className - the new service name

getServiceHandler

public ServiceHandler<LocalServiceDescriptor> getServiceHandler()
Description copied from class: chemaxon.marvin.services.ServiceDescriptor
Returns a service handler instance for this descriptor. The returned handler is capable to perform service call on the service described by this descriptor

Specified by:
getServiceHandler in class chemaxon.marvin.services.ServiceDescriptor
Returns:
a service handler instance for this descriptor

getIcon

public Icon getIcon()
Description copied from class: chemaxon.marvin.services.ServiceDescriptor
Returns the icon of service descriptor or null if no icon

Overrides:
getIcon in class chemaxon.marvin.services.ServiceDescriptor
Returns:
the icon of service descriptor or null if no icon

getSimpleName

public String getSimpleName()
Description copied from class: chemaxon.marvin.services.ServiceDescriptor
Returns the simple name of the service type

Overrides:
getSimpleName in class chemaxon.marvin.services.ServiceDescriptor
Returns:
the simple name of the service type