org.jboss.wsf.spi.deployment
Class AbstractExtensible

java.lang.Object
  extended by org.jboss.wsf.spi.deployment.AbstractExtensible
All Implemented Interfaces:
Extensible
Direct Known Subclasses:
InvocationContext

public abstract class AbstractExtensible
extends Object
implements Extensible

A general extendible artifact

Since:
20-Apr-2007
Author:
Thomas.Diesler@jboss.com

Constructor Summary
AbstractExtensible()
           
AbstractExtensible(int initialAttachmentsSize, int initialPropertiesSize)
           
 
Method Summary
<T> T
addAttachment(Class<T> clazz, Object obj)
          Add arbitrary attachments
<T> T
getAttachment(Class<T> clazz)
          Get an arbitrary attachment
 Collection<Object> getAttachments()
          Get arbitrary attachments
 Set<String> getProperties()
          Get the set of property names
 Object getProperty(String key)
          Get an property
<T> T
removeAttachment(Class<T> key)
          Remove arbitrary attachments
 void removeProperty(String key)
          Remove a property
 void setProperties(Map<String,Object> props)
          Set a map of properties
 void setProperty(String key, Object value)
          Set a property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractExtensible

public AbstractExtensible()

AbstractExtensible

public AbstractExtensible(int initialAttachmentsSize,
                          int initialPropertiesSize)
Method Detail

getAttachments

public Collection<Object> getAttachments()
Description copied from interface: Extensible
Get arbitrary attachments

Specified by:
getAttachments in interface Extensible

getAttachment

public <T> T getAttachment(Class<T> clazz)
Description copied from interface: Extensible
Get an arbitrary attachment

Specified by:
getAttachment in interface Extensible

addAttachment

public <T> T addAttachment(Class<T> clazz,
                           Object obj)
Description copied from interface: Extensible
Add arbitrary attachments

Specified by:
addAttachment in interface Extensible

removeAttachment

public <T> T removeAttachment(Class<T> key)
Description copied from interface: Extensible
Remove arbitrary attachments

Specified by:
removeAttachment in interface Extensible

getProperties

public Set<String> getProperties()
Description copied from interface: Extensible
Get the set of property names

Specified by:
getProperties in interface Extensible

getProperty

public Object getProperty(String key)
Description copied from interface: Extensible
Get an property

Specified by:
getProperty in interface Extensible

removeProperty

public void removeProperty(String key)
Description copied from interface: Extensible
Remove a property

Specified by:
removeProperty in interface Extensible

setProperty

public void setProperty(String key,
                        Object value)
Description copied from interface: Extensible
Set a property

Specified by:
setProperty in interface Extensible

setProperties

public void setProperties(Map<String,Object> props)
Description copied from interface: Extensible
Set a map of properties

Specified by:
setProperties in interface Extensible


Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.