Interface UpdatableResourceGroup
-
@ProviderType public interface UpdatableResourceGroupThis is a group of resources all pointing to the same artifact, but maybe in different versions or locations. This object allows to update the alias and the resource id of the group as a whole.- Since:
- 1.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.lang.StringgetAlias()Get the current alias for this group.@NotNull java.lang.StringgetId()Get the unique id@NotNull java.lang.StringgetResourceType()Get the resource type of the groupvoidsetAlias(@Nullable java.lang.String value)Set the current alias for this group.voidsetId(@NotNull java.lang.String id)Set a new unique id.voidupdate()Update the OSGi installer with the new information If this method is not called, changed made through the setter methods are discarded.
-
-
-
Method Detail
-
getAlias
@Nullable @Nullable java.lang.String getAlias()
Get the current alias for this group.- Returns:
- The alias or
null.
-
setAlias
void setAlias(@Nullable @Nullable java.lang.String value)Set the current alias for this group.- Parameters:
value- A new alias ornull.
-
getResourceType
@NotNull @NotNull java.lang.String getResourceType()
Get the resource type of the group- Returns:
- The resource type.
-
getId
@NotNull @NotNull java.lang.String getId()
Get the unique id- Returns:
- The unique id
-
setId
void setId(@NotNull @NotNull java.lang.String id)Set a new unique id.- Parameters:
id- The unique id- Throws:
java.lang.IllegalArgumentException- Ifidisnull.
-
update
void update()
Update the OSGi installer with the new information If this method is not called, changed made through the setter methods are discarded.
-
-