org.jboss.osgi.resolver
Class XResolveContext
java.lang.Object
org.osgi.service.resolver.ResolveContext
org.jboss.osgi.resolver.XResolveContext
- All Implemented Interfaces:
- XAttachmentSupport
- Direct Known Subclasses:
- AbstractResolveContext
public abstract class XResolveContext
- extends ResolveContext
- implements XAttachmentSupport
An extension of the ResolveContext
- Since:
- 02-Apr-2012
- Author:
- thomas.diesler@jboss.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XResolveContext
public XResolveContext()
getEnvironment
public abstract XEnvironment getEnvironment()
addAttachment
public <T> T addAttachment(Class<T> clazz,
T value)
- Description copied from interface:
XAttachmentSupport
- Attach an arbirtary object with this element.
- Specified by:
addAttachment in interface XAttachmentSupport
- Parameters:
clazz - key for the attachment
- Returns:
- The previously attachment object or null
getAttachment
public <T> T getAttachment(Class<T> clazz)
- Description copied from interface:
XAttachmentSupport
- Get the attached object for a given key
- Specified by:
getAttachment in interface XAttachmentSupport
- Parameters:
clazz - key for the attachment
- Returns:
- The attached object or null
removeAttachment
public <T> T removeAttachment(Class<T> clazz)
- Description copied from interface:
XAttachmentSupport
- Remove an attached object for a given key
- Specified by:
removeAttachment in interface XAttachmentSupport
- Parameters:
clazz - key for the attachment
- Returns:
- The attached object or null
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.