Advanced Customization > Windchill Adapter > Custom Windchill Adapter Webjects > About the wt.adapter.delegates.properties File > Defining Webject Delegates
  
Defining Webject Delegates
Entries in this section specify the names of Windchill adapter webject delegates along with the type of object for which each webject delegate is valid. The form of a webject delegate definition is:
webjectName.TYPE|targetType=webjectDelegateClassname
webjectName is the name of the webject
targetType is the class or Windchill type specified in the TYPE parameter
webjectDelegateClassname is the class name of the webject delegate to invoke
For example, consider the following webject delegate definitions:
QUERYOBJECTS.WCTYPE|
java.lang.Object=com.ptc.core.adapter.server.impl.QueryObjectsWebjectDelegate

QUERYOBJECTS.WCTYPE|
wt.org.WTPrincipal=wt.adapter.org.QueryPrincipalsWebjectDelegate
Two webject delegates are defined with the name QUERYOBJECTS. The first delegate is for objects of type java.lang.Object. The second delegate is for objects of type wt.org.WTPrincipal.
When the Windchill adapter is asked to invoke a webject named QUERYOBJECTS it first looks at the TYPE parameter of the webject. If the TYPE parameter specifies wt.org.WTPrincipal or the name of a subclass of the wt.org.WTPrincipal class, then the second webject delegate is used.
The Windchill adapter then invokes the class wt.adapter.org.QueryPrincipalsWebjectDelegate to query for participants using the search criteria specified by the user.
Alternatively, if the TYPE parameter of the QUERYOBJECTS webject contains the name of any class or Windchill type that is not an instance of wt.org.WTPrincipal, the first webject delegate is used. The Windchill adapter invokes the class com.ptc.core.adapter.server.impl.QueryObjectsWebjectDelegate to query for objects using the search criteria specified by the user.
* 
The case of characters is ignored in webject names within tasks, and dashes are discarded when looking up webject delegates. Webject names specified in wt.adapter.delegates.properties must be specified entirely in uppercase and without dashes.