com.ca.jcs.processor
Class AbstractAttributeStyleOpProcessor
java.lang.Object
com.ca.jcs.processor.AbstractBaseProcessor
com.ca.jcs.processor.AbstractAttributeStyleOpProcessor
- All Implemented Interfaces:
- Activatable, AttributeStyleOpProcessor, OpProcessor
- Direct Known Subclasses:
- AbstractAttributeStyleOpProcessorAssocDirect, AbstractAttributeStyleOpProcessorAssocIndirect, StubAttributeStyleOpProcessor
public abstract class AbstractAttributeStyleOpProcessor
- extends AbstractBaseProcessor
- implements AttributeStyleOpProcessor
Base class for attribute-style processors, that mandates a standardized constructor for maximum
consistency. Provides the service
of automatically initializing its proxiedSelf member, which should be used when OpBindings are supported,
and may need to be triggered for calls that the attribute style processor makes to it's own methods. This member
is automatically assigned to "this" when no such OpBindings are active due to the current metadata.
|
Method Summary |
void |
activate()
Sets proxiedSelf to OpBindings-aware proxy if any OpBindings are configured, otherwise left assigned to "this". |
void |
deactivate()
We also define this for symmetry as activate() is defined. |
Attribute |
doLookupExpensiveStub(ObjectInfo objInfo,
String attrId)
Default implementation is to simply do a lookup for attrId, but derived
classes may be able to more efficiently find out if the attribute is set or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proxiedSelf
@NotNull
protected AttributeStyleOpProcessor proxiedSelf
- Set to "this" unless OpBindings are active in which case assigned to an OpBindings-aware proxy.
AbstractAttributeStyleOpProcessor
public AbstractAttributeStyleOpProcessor(BaseConnector connector)
- Hang on to some important contextual values.
- Parameters:
connector - Parent baseConnector.
activate
public void activate()
throws NamingException
- Sets proxiedSelf to OpBindings-aware proxy if any OpBindings are configured, otherwise left assigned to "this".
- Specified by:
activate in interface Activatable- Specified by:
activate in interface AttributeStyleOpProcessor
- Throws:
NamingException
deactivate
public void deactivate()
throws NamingException
- We also define this for symmetry as activate() is defined.
- Specified by:
deactivate in interface Activatable- Specified by:
deactivate in interface AttributeStyleOpProcessor
- Throws:
NamingException
doLookupExpensiveStub
public Attribute doLookupExpensiveStub(ObjectInfo objInfo,
String attrId)
throws NamingException
- Default implementation is to simply do a lookup for attrId, but derived
classes may be able to more efficiently find out if the attribute is set or not.
- Specified by:
doLookupExpensiveStub in interface AttributeStyleOpProcessor
- Parameters:
objInfo - Object for which attribute should be looked up.attrId - Id for expensive attribute.
- Returns:
- Possibly less expensive placeholder for expensive attribute, if its possible to avoid
looking it up fully.
- Throws:
NamingException- See Also:
ValidationLazyAttributesProxy
Created 2009-10-09 16:43 EST