Package nl.gx.webmanager.wcb.foundation
Class ComponentBundleDefinitionImpl
- java.lang.Object
-
- nl.gx.webmanager.wcb.foundation.ComponentBundleDefinitionImpl
-
- All Implemented Interfaces:
ComponentBundleDefinition
public class ComponentBundleDefinitionImpl extends Object implements ComponentBundleDefinition
Simple bean class that describes the configuration of a ComponentBundle.
-
-
Constructor Summary
Constructors Constructor Description ComponentBundleDefinitionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.osgi.framework.BundleContext
getBundleContext()
Return the bundleContext for this WCBComponentDefinition[]
getComponentDefinitions()
Return the component definitions for this WCBString
getDescription()
Return the description for this WCBString
getDomain()
Return the Domain of this WCBString
getId()
Return the id for the WCB.String[]
getLanguageResources()
Return the language resources for this WCBString
getName()
Return the name for this WCBString
getNameSpace()
Returns the nameSpace of this WCBVersion
getVersion()
Return the version for this WCBString
getWCBId()
Return the WCB ID of this WCBString
getWCBKey()
Deprecated.void
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Set the bundleContext for this WCBvoid
setComponentDefinitions(ComponentDefinition[] componentDefinitions)
void
setDescription(String description)
basis setter.void
setDomain(String domain)
Sets the Domain of this WCBvoid
setId(String id)
basis setter.void
setLanguageResources(String[] languageResources)
Set the languageResouces for this bundle optional, by default all the files from the messages dir are usedvoid
setName(String name)
basis setter.void
setNameSpace(String nameSpace)
Sets the nameSpace of this WCBvoid
setVersion(Version commercialVersion)
basis setter.void
setWCBId(String wcbId)
Sets the WCB ID of this WCBvoid
setWCBKey(String wcbKey)
Deprecated.No longer used
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ComponentBundleDefinition
Return the id for the WCB.- Specified by:
getId
in interfaceComponentBundleDefinition
- Returns:
- the id
-
setId
public void setId(String id)
basis setter.- Parameters:
id
-
-
getWCBId
public String getWCBId()
Description copied from interface:ComponentBundleDefinition
Return the WCB ID of this WCB- Specified by:
getWCBId
in interfaceComponentBundleDefinition
- Returns:
- the WCB ID
-
setWCBId
public void setWCBId(String wcbId)
Sets the WCB ID of this WCB- Parameters:
wcbId
- the WCB ID to set
-
getWCBKey
@Deprecated public String getWCBKey()
Deprecated.Description copied from interface:ComponentBundleDefinition
Return the WCB key for this WCB- Specified by:
getWCBKey
in interfaceComponentBundleDefinition
- Returns:
- the WCB Key
-
setWCBKey
@Deprecated public void setWCBKey(String wcbKey)
Deprecated.No longer usedSets the key for the WCB ID of this ComponentBundle.- Parameters:
wcbKey
- the key for the WCB ID
-
getDomain
public String getDomain()
Description copied from interface:ComponentBundleDefinition
Return the Domain of this WCB- Specified by:
getDomain
in interfaceComponentBundleDefinition
- Returns:
- the Domain
-
setDomain
public void setDomain(String domain)
Sets the Domain of this WCB- Parameters:
domain
- the Domain to set
-
getName
public String getName()
Description copied from interface:ComponentBundleDefinition
Return the name for this WCB- Specified by:
getName
in interfaceComponentBundleDefinition
- Returns:
- the name
-
setName
public void setName(String name)
basis setter.- Parameters:
name
- the name
-
getDescription
public String getDescription()
Description copied from interface:ComponentBundleDefinition
Return the description for this WCB- Specified by:
getDescription
in interfaceComponentBundleDefinition
- Returns:
- the description
-
setDescription
public void setDescription(String description)
basis setter.- Parameters:
description
- the description
-
getVersion
public Version getVersion()
Description copied from interface:ComponentBundleDefinition
Return the version for this WCB- Specified by:
getVersion
in interfaceComponentBundleDefinition
- Returns:
- the version
-
setVersion
public void setVersion(Version commercialVersion)
basis setter.- Parameters:
commercialVersion
- the commercial version
-
setLanguageResources
public void setLanguageResources(String[] languageResources)
Description copied from interface:ComponentBundleDefinition
Set the languageResouces for this bundle optional, by default all the files from the messages dir are used- Specified by:
setLanguageResources
in interfaceComponentBundleDefinition
- Parameters:
languageResources
- language resources
-
getLanguageResources
public String[] getLanguageResources()
Description copied from interface:ComponentBundleDefinition
Return the language resources for this WCB- Specified by:
getLanguageResources
in interfaceComponentBundleDefinition
- Returns:
- the language resources
-
setComponentDefinitions
public void setComponentDefinitions(ComponentDefinition[] componentDefinitions)
- Parameters:
componentDefinitions
- the componentDefinitions
-
getComponentDefinitions
public ComponentDefinition[] getComponentDefinitions()
Description copied from interface:ComponentBundleDefinition
Return the component definitions for this WCB- Specified by:
getComponentDefinitions
in interfaceComponentBundleDefinition
- Returns:
- the component definitions
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Description copied from interface:ComponentBundleDefinition
Set the bundleContext for this WCB- Specified by:
setBundleContext
in interfaceComponentBundleDefinition
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
Description copied from interface:ComponentBundleDefinition
Return the bundleContext for this WCB- Specified by:
getBundleContext
in interfaceComponentBundleDefinition
- Returns:
- the bundleContext
-
getNameSpace
public String getNameSpace()
Description copied from interface:ComponentBundleDefinition
Returns the nameSpace of this WCB- Specified by:
getNameSpace
in interfaceComponentBundleDefinition
- Returns:
- The nameSpace of this WCB
-
setNameSpace
public void setNameSpace(String nameSpace)
Description copied from interface:ComponentBundleDefinition
Sets the nameSpace of this WCB- Specified by:
setNameSpace
in interfaceComponentBundleDefinition
- Parameters:
nameSpace
- to set
-
-