stomp.service
Class ServiceMetaData

java.lang.Object
  |
  +--stomp.service.ServiceMetaData
Direct Known Subclasses:
EnhancedServiceMetaData

public class ServiceMetaData
extends java.lang.Object

responsible for finding metadata for objects that are to be service enhanced and answering questions about the contents of these files.

Author:
Eric Lindauer

Constructor Summary
protected ServiceMetaData(java.lang.Class theClass, java.net.URL resource)
           
 
Method Summary
 java.lang.String[] getClassServiceNames()
          Returns the services defined for this class.
 java.lang.String[] getDefaultServices()
           
 java.lang.Class getDescribedType()
           
protected  Prefs getPrefs()
           
 org.w3c.dom.Element getServiceDOM(java.lang.String service)
          searches the xml metadata and finds the Element that corresponds to the requested service.
 java.lang.String[] getServiceNames()
          Returns the services that should be applied to methods called on objects of this class.
 java.lang.Class[] getServiceTypes()
           
 ServiceMetaData getSuper()
          returns the metadata associated with the parent of this object, if any.
 boolean hasService(java.lang.String service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceMetaData

protected ServiceMetaData(java.lang.Class theClass,
                          java.net.URL resource)
Method Detail

getPrefs

protected Prefs getPrefs()

getServiceDOM

public org.w3c.dom.Element getServiceDOM(java.lang.String service)
searches the xml metadata and finds the Element that corresponds to the requested service.


getDescribedType

public java.lang.Class getDescribedType()

getServiceNames

public java.lang.String[] getServiceNames()
Returns the services that should be applied to methods called on objects of this class. Includes services defined in the parent class metadata, which are not found in subclass metadata. Services are returned in the order listed in services.xml. Parent class services, not found in subclasses, are listed before subclass services.


getClassServiceNames

public java.lang.String[] getClassServiceNames()
Returns the services defined for this class. Parent metadata is ignored.


getDefaultServices

public java.lang.String[] getDefaultServices()

getServiceTypes

public java.lang.Class[] getServiceTypes()

hasService

public boolean hasService(java.lang.String service)

getSuper

public ServiceMetaData getSuper()
returns the metadata associated with the parent of this object, if any.