Package org.jboss.wsf.spi.deployment
Interface Extensible
-
- All Known Subinterfaces:
ArchiveDeployment,Deployment,Endpoint,HttpEndpoint,JMSEndpoint,Service
- All Known Implementing Classes:
AbstractExtensible,InvocationContext
public interface ExtensibleA general extendible artifact- Since:
- 20-Apr-2007
- Author:
- Thomas.Diesler@jboss.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TaddAttachment(Class<T> key, Object value)Add arbitrary attachments<T> TgetAttachment(Class<T> key)Get an arbitrary attachment<T> Collection<T>getAttachments()Get arbitrary attachmentsSet<String>getProperties()Get the set of property namesObjectgetProperty(String key)Get an property<T> TremoveAttachment(Class<T> key)Remove arbitrary attachmentsvoidremoveProperty(String key)Remove a propertyvoidsetProperties(Map<String,Object> props)Set a map of propertiesvoidsetProperty(String key, Object value)Set a property
-
-
-
Method Detail
-
addAttachment
<T> T addAttachment(Class<T> key, Object value)
Add arbitrary attachments- Type Parameters:
T- class type- Parameters:
key- identifiervalue- value- Returns:
- added attachment
-
getAttachments
<T> Collection<T> getAttachments()
Get arbitrary attachments- Type Parameters:
T- class type of attachments- Returns:
- collection of attachments
-
getAttachment
<T> T getAttachment(Class<T> key)
Get an arbitrary attachment- Type Parameters:
T- class type of attachments- Parameters:
key- identifier- Returns:
- attachment found
-
removeAttachment
<T> T removeAttachment(Class<T> key)
Remove arbitrary attachments- Type Parameters:
T- class type of attachments- Parameters:
key- identifier- Returns:
- attachment removed
-
getProperty
Object getProperty(String key)
Get an property- Parameters:
key- property identifier- Returns:
- found property
-
setProperty
void setProperty(String key, Object value)
Set a property- Parameters:
key- property identifiervalue- property value
-
removeProperty
void removeProperty(String key)
Remove a property- Parameters:
key- property identifier
-
getProperties
Set<String> getProperties()
Get the set of property names- Returns:
- set of property values
-
-