Package nl.gx.webmanager.wcb.foundation
Class ComponentDependencyBase
- java.lang.Object
-
- nl.gx.webmanager.wcb.foundation.ComponentDependencyBase
-
- All Implemented Interfaces:
ComponentDependency
- Direct Known Subclasses:
ComponentDependencyImpl
,ComponentExtensionImpl
public abstract class ComponentDependencyBase extends Object implements ComponentDependency
-
-
Constructor Summary
Constructors Constructor Description ComponentDependencyBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddedCallback()
Returns the name of a method that should be invoke when an instance of this dependency comes available.String
getFilter()
TODO re-factor to a dictionary or add getFileterProperties? Returns the LDAP filter of the dependencyString
getInterfaceClassName()
Returns the fully qualified className of the dependencyString
getRemovedCallback()
Returns the name of a method that should be invoke when an instance of this dependency comes unavailable.boolean
isRequired()
Returns whether this dependency is required or notvoid
setAddedCallback(String addedCallback)
void
setFilter(String filter)
void
setRemovedCallback(String removedCallback)
void
setRequired(boolean required)
void
setServiceName(String serviceName)
-
-
-
Method Detail
-
getAddedCallback
public String getAddedCallback()
Description copied from interface:ComponentDependency
Returns the name of a method that should be invoke when an instance of this dependency comes available. The component should implement a method with the following signature: public void(ServiceReference ref, Object inst) - Specified by:
getAddedCallback
in interfaceComponentDependency
- Returns:
- the methodName
-
setAddedCallback
public void setAddedCallback(String addedCallback)
-
getInterfaceClassName
public String getInterfaceClassName()
Description copied from interface:ComponentDependency
Returns the fully qualified className of the dependency- Specified by:
getInterfaceClassName
in interfaceComponentDependency
- Returns:
- the className
-
setServiceName
public void setServiceName(String serviceName)
-
getRemovedCallback
public String getRemovedCallback()
Description copied from interface:ComponentDependency
Returns the name of a method that should be invoke when an instance of this dependency comes unavailable. The component should implement a method with the following signature: public void(ServiceReference ref, Object inst) - Specified by:
getRemovedCallback
in interfaceComponentDependency
- Returns:
- the methodName
-
setRemovedCallback
public void setRemovedCallback(String removedCallback)
-
isRequired
public boolean isRequired()
Description copied from interface:ComponentDependency
Returns whether this dependency is required or not- Specified by:
isRequired
in interfaceComponentDependency
- Returns:
- boolean
-
setRequired
public void setRequired(boolean required)
-
getFilter
public String getFilter()
Description copied from interface:ComponentDependency
TODO re-factor to a dictionary or add getFileterProperties? Returns the LDAP filter of the dependency- Specified by:
getFilter
in interfaceComponentDependency
- Returns:
- the filter
-
setFilter
public void setFilter(String filter)
-
-