public abstract class AbstractDynamicComponent extends Object implements IDynamicComponent
IDynamicComponent.| Modifier and Type | Field and Description |
|---|---|
protected com.helger.commons.concurrent.SimpleReadWriteLock |
m_aRWLock |
| Constructor and Description |
|---|
AbstractDynamicComponent() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.attr.StringMap |
attrs() |
boolean |
equals(Object o) |
int |
getAttributeAsIntRequired(String sKey) |
String |
getAttributeAsStringRequired(String sKey) |
String |
getName()
Returns a name for the component.
|
IAS2Session |
getSession()
Returns the Session used to initialize this Component.
|
int |
hashCode() |
void |
initDynamicComponent(IAS2Session aSession,
com.helger.commons.collection.attr.IStringMap aParameters)
After creating a Component object, this method should be called to set any
parameters used by the component.
|
String |
toString() |
@Nonnull @ReturnsMutableObject public final com.helger.commons.collection.attr.StringMap attrs()
attrs in interface IDynamicComponent@Nonnull public String getName()
IDynamicComponentgetName in interface IDynamicComponent@Nonnull public final String getAttributeAsStringRequired(@Nonnull String sKey) throws InvalidParameterException
InvalidParameterExceptionpublic final int getAttributeAsIntRequired(@Nonnull String sKey) throws InvalidParameterException
InvalidParameterException@Nonnull public final IAS2Session getSession()
IDynamicComponentgetSession in interface IDynamicComponentnull.@OverridingMethodsMustInvokeSuper public void initDynamicComponent(@Nonnull IAS2Session aSession, @Nullable com.helger.commons.collection.attr.IStringMap aParameters) throws OpenAS2Exception
IDynamicComponentinitDynamicComponent in interface IDynamicComponentaSession - the component uses this object to access other componentsaParameters - configuration values for the component. All parameters will be
stored as attributes of this component. All attributes existing
before this method is called will be removed!OpenAS2Exception - If an error occurs while initializing the componentInvalidParameterException - If a required parameter is null in the parameters MapIAS2SessionCopyright © 2013–2019 Philip Helger. All rights reserved.