public class AggregatorExtension extends Object implements IAggregatorExtension
IAggregatorExtension
interface.Constructor and Description |
---|
AggregatorExtension(Object instance,
Properties attributes,
InitParams initParams,
String extensionPointId,
String uniqueId) |
AggregatorExtension(Object instance,
Properties attributes,
InitParams initParams,
String extensionPointId,
String uniqueId,
IAggregator aggregator)
Constructs a new AggregatorExtension object from an object instance and
and the specified extension point id
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String name)
Returns the value of the specified attribute.
|
Set<String> |
getAttributeNames()
Returns the set of attribute names for which
IAggregatorExtension.getAttribute(String) will return
a value. |
String |
getContributorId()
Returns the bundle symbolic name for the bundle that contributed this
extension.
|
String |
getExtensionPointId()
Returns the extension point id that this extension object implements
|
InitParams |
getInitParams()
Returns the init params for the extension.
|
Object |
getInstance()
Returns the object instance implementing this extension
|
String |
getUniqueId()
Returns the unique id for this extension
|
String |
toString() |
public AggregatorExtension(Object instance, Properties attributes, InitParams initParams, String extensionPointId, String uniqueId, IAggregator aggregator)
instance
- The instantiated object for this extensionattributes
- The attributes for this extensioninitParams
- The init-params for this extensionextensionPointId
- the extension point iduniqueId
- the extension unique idaggregator
- the aggregatorpublic AggregatorExtension(Object instance, Properties attributes, InitParams initParams, String extensionPointId, String uniqueId)
public String getExtensionPointId()
IAggregatorExtension
getExtensionPointId
in interface IAggregatorExtension
public Object getInstance()
IAggregatorExtension
getInstance
in interface IAggregatorExtension
public String getAttribute(String name)
IAggregatorExtension
IExtensionInitializer.IExtensionRegistrar.registerExtension(Object, Properties, InitParams, String, String, IAggregatorExtension)
,
they are the attributes provided in the properties object.getAttribute
in interface IAggregatorExtension
name
- the attribute namepublic Set<String> getAttributeNames()
IAggregatorExtension
IAggregatorExtension.getAttribute(String)
will return
a value. The extension attributes which are allowed are defined by the extension point.
For OSGi, they are specified in the extension point schema. All extensions must
specify the (non-optional) attributes defined by the extension point and may not specify
any attributes which are not defined by the extension point.getAttributeNames
in interface IAggregatorExtension
public String getUniqueId()
IAggregatorExtension
getUniqueId
in interface IAggregatorExtension
public String getContributorId()
IAggregatorExtension
IExtensionInitializer.IExtensionRegistrar
interface, then the value is null.getContributorId
in interface IAggregatorExtension
public InitParams getInitParams()
IAggregatorExtension
getInitParams
in interface IAggregatorExtension
Copyright © 2011-2015 IBM. All Rights Reserved.