org.obe.client.api.repository
Class JavaMethodMetaData

java.lang.Object
  extended byorg.obe.client.api.repository.AbstractMetaData
      extended byorg.obe.client.api.repository.ToolAgentMetaData
          extended byorg.obe.client.api.repository.JavaMethodMetaData
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EJBMethodMetaData, JavaApplicationMetaData

public class JavaMethodMetaData
extends ToolAgentMetaData

Describes a procedure implemented by a Java class.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
protected  java.lang.String _className
           
protected  java.lang.String _method
           
protected  java.lang.String[] _methodSig
           
 
Fields inherited from class org.obe.client.api.repository.ToolAgentMetaData
_formalParameters
 
Fields inherited from class org.obe.client.api.repository.AbstractMetaData
_author, _description, _displayName, _docUrl, _id, _threadsafe, _type, allowInheritance, EMPTY_ARGS, NO_ARGS_SIG
 
Constructor Summary
JavaMethodMetaData()
           
JavaMethodMetaData(java.lang.String id, java.lang.String displayName, java.lang.String description, java.lang.String docUrl, java.lang.String author, java.lang.String clazz, java.lang.String method, java.lang.String[] methodArgTypes)
           
 
Method Summary
 java.lang.String getClassName()
           
protected  java.lang.String getImplClass()
           
protected  java.lang.String[] getImplCtorSig()
           
 java.lang.String getMethod()
           
 java.lang.String[] getMethodSig()
           
 void init()
          Provides an opportunity for metadata classes to perform post-load initialization.
 ToolAgentMetaData introspect(ExternalReference extRef, org.xml.sax.EntityResolver entityResolver)
          Introspects a reference to an externally defined tool or service.
 void setClassName(java.lang.String className)
           
 void setMethod(java.lang.String method)
           
 void setMethodSig(java.lang.String[] methodSig)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.client.api.repository.ToolAgentMetaData
createInstance, createInstance, getFormalParameter, setFormalParameter
 
Methods inherited from class org.obe.client.api.repository.AbstractMetaData
createInstance, getAuthor, getDescription, getDisplayName, getDocUrl, getId, getThreadsafe, getType, isThreadsafe, setAuthor, setDescription, setDisplayName, setDocUrl, setId, setThreadsafe, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_className

protected java.lang.String _className

_method

protected java.lang.String _method

_methodSig

protected java.lang.String[] _methodSig
Constructor Detail

JavaMethodMetaData

public JavaMethodMetaData()

JavaMethodMetaData

public JavaMethodMetaData(java.lang.String id,
                          java.lang.String displayName,
                          java.lang.String description,
                          java.lang.String docUrl,
                          java.lang.String author,
                          java.lang.String clazz,
                          java.lang.String method,
                          java.lang.String[] methodArgTypes)
Method Detail

introspect

public ToolAgentMetaData introspect(ExternalReference extRef,
                                    org.xml.sax.EntityResolver entityResolver)
                             throws RepositoryException
Description copied from class: ToolAgentMetaData
Introspects a reference to an externally defined tool or service. If the associated tool agent type can handle the reference, the method returns the meta-data required to instantiate such a tool agent.

Specified by:
introspect in class ToolAgentMetaData
Parameters:
extRef - The external tool reference.
entityResolver -
Returns:
Configured tool meta-data, or null if this tool type cannot handle this reference.
Throws:
RepositoryException

init

public void init()
Description copied from class: ToolAgentMetaData
Provides an opportunity for metadata classes to perform post-load initialization. The ToolAgentFactory calls this method on each ToolAgentMetaData object registered with it as part of the final phase of initialization. Client code should not call this method.

Overrides:
init in class ToolAgentMetaData

getImplClass

protected java.lang.String getImplClass()
Specified by:
getImplClass in class AbstractMetaData

getImplCtorSig

protected java.lang.String[] getImplCtorSig()
Specified by:
getImplCtorSig in class AbstractMetaData

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getMethod

public java.lang.String getMethod()

setMethod

public void setMethod(java.lang.String method)

getMethodSig

public java.lang.String[] getMethodSig()

setMethodSig

public void setMethodSig(java.lang.String[] methodSig)

toString

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


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.