Package org.apache.cxf.service.model
Class AbstractPropertiesHolder
- java.lang.Object
-
- org.apache.cxf.service.model.AbstractPropertiesHolder
-
- All Implemented Interfaces:
Extensible
- Direct Known Subclasses:
AbstractDescriptionElement,AbstractMessageContainer,BindingFaultInfo,BindingMessageInfo,BindingOperationInfo,DescriptionInfo,MessagePartInfo,OperationInfo,SchemaInfo
public abstract class AbstractPropertiesHolder extends Object implements Extensible
-
-
Constructor Summary
Constructors Constructor Description AbstractPropertiesHolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtensionAttribute(QName name, Object attr)voidaddExtensor(Object el)booleancontainsExtensor(Object el)protected static booleanequals(Object o1, Object o2)StringgetDocumentation()ObjectgetExtensionAttribute(QName name)Map<QName,Object>getExtensionAttributes()<T> TgetExtensor(Class<T> cls)AtomicReference<Object[]>getExtensors()<T> List<T>getExtensors(Class<T> cls)Map<String,Object>getProperties()ObjectgetProperty(String name)<T> TgetProperty(String name, Class<T> cls)<T> TgetTraversedExtensor(T defaultValue, Class<T> type)Lookup a configuration value.booleanhasProperty(String name)ObjectremoveProperty(String name)voidsetDelegate(AbstractPropertiesHolder p, boolean props)voidsetDocumentation(String s)voidsetExtensionAttributes(Map<QName,Object> attrs)voidsetProperty(String name, Object v)
-
-
-
Method Detail
-
setDelegate
public final void setDelegate(AbstractPropertiesHolder p, boolean props)
-
getDocumentation
public String getDocumentation()
-
setDocumentation
public void setDocumentation(String s)
-
hasProperty
public boolean hasProperty(String name)
-
containsExtensor
public boolean containsExtensor(Object el)
-
addExtensor
public void addExtensor(Object el)
- Specified by:
addExtensorin interfaceExtensible
-
getExtensor
public <T> T getExtensor(Class<T> cls)
- Specified by:
getExtensorin interfaceExtensible
-
getExtensors
public <T> List<T> getExtensors(Class<T> cls)
- Specified by:
getExtensorsin interfaceExtensible
-
getExtensors
public AtomicReference<Object[]> getExtensors()
-
getExtensionAttribute
public Object getExtensionAttribute(QName name)
- Specified by:
getExtensionAttributein interfaceExtensible
-
getExtensionAttributes
public Map<QName,Object> getExtensionAttributes()
- Specified by:
getExtensionAttributesin interfaceExtensible
-
addExtensionAttribute
public void addExtensionAttribute(QName name, Object attr)
- Specified by:
addExtensionAttributein interfaceExtensible
-
setExtensionAttributes
public void setExtensionAttributes(Map<QName,Object> attrs)
- Specified by:
setExtensionAttributesin interfaceExtensible
-
getTraversedExtensor
public <T> T getTraversedExtensor(T defaultValue, Class<T> type)Lookup a configuration value. This may be found in the properties holder supplied (i.e. an EndpointInfo or ServiceInfo), or it may be a property on the Bus itself. If no value is found, the defaultValue is returned.- Parameters:
defaultValue- the default valuetype- the extensor type- Returns:
- the configuration value or the default
-
-