com.ca.jcs.processor
Interface MethodStyleOpProcessor

All Superinterfaces:
Activatable
All Known Implementing Classes:
AbstractMethodStyleOpProcessor, JDBCMethodStyleOpProcessor

public interface MethodStyleOpProcessor
extends Activatable

Implemented by connector processor components whose implementation is largely independent of the actual JNDI operation being performed, such as handling method-style and script-style op bindings. Note that activate() is called when processors for all styles have been assigned to the parent connector (which has been fully initialised and is ready to receive requests).

One use is as an optional extension to the OpProcessor interface that allows for bindings to JNDI operations which can be executed before, after or instead of the target operation (eg JDBCMetaConnector provides for binding stored procedures to operations). Methods in this interface are only invoked after the JCS framework has determined the runtime context matches the guard condition declared as part of the operation binding.

Refer to the cacom module's opbindings.xsd.


Method Summary
 Attributes doLookup(OpBindingType opBinding, ObjectInfo objInfo, String[] attrIds)
           
 NamingEnumeration<SearchResult> doSearch(OpBindingType opBinding, Name baseName, FilterInfo filterInfo, Map<String,String> environment, SearchControls searchControls)
          todo Need to finalise exactly what the query interfaces look like (especially the iterator returns from them) ...
 void doUpdate(OpBindingType opBinding, ObjectInfo objInfo, Map<String,Object> parameterValues)
          Sets null value for parameter mapped to OpBindingsHelper.ERROR_STATUS_ATTR on success, otherwise sets it to description of error that occurred.
 Opbindings getMetaData()
           
 void setMetaData(Opbindings opbindings)
          Called when metadata used to configure this connector is changed.
 
Methods inherited from interface com.ca.jcs.Activatable
activate, deactivate
 

Method Detail

getMetaData

Opbindings getMetaData()
Returns:
Metadata used to configure this connector.

setMetaData

void setMetaData(Opbindings opbindings)
                 throws NamingException
Called when metadata used to configure this connector is changed.

Parameters:
opbindings - New opBindings to be internalised, where only script payloads are included.
Throws:
NamingException

doUpdate

void doUpdate(OpBindingType opBinding,
              ObjectInfo objInfo,
              Map<String,Object> parameterValues)
              throws NamingException
Sets null value for parameter mapped to OpBindingsHelper.ERROR_STATUS_ATTR on success, otherwise sets it to description of error that occurred.

Throws:
NamingException

doSearch

NamingEnumeration<SearchResult> doSearch(OpBindingType opBinding,
                                         Name baseName,
                                         FilterInfo filterInfo,
                                         Map<String,String> environment,
                                         SearchControls searchControls)
                                         throws NamingException
todo Need to finalise exactly what the query interfaces look like (especially the iterator returns from them) ...

Throws:
NamingException

doLookup

Attributes doLookup(OpBindingType opBinding,
                    ObjectInfo objInfo,
                    String[] attrIds)
                    throws NamingException
Throws:
NamingException


Created 2011-07-14 13:27 EST