Package org.wildfly.channel
Class Channel
- java.lang.Object
-
- org.wildfly.channel.Channel
-
- All Implemented Interfaces:
AutoCloseable
public class Channel extends Object implements AutoCloseable
Java representation of a Channel.
-
-
Constructor Summary
Constructors Constructor Description Channel(String schemaVersion, String name, String description, Vendor vendor, List<ChannelRequirement> channelRequirements, Collection<Stream> streams)Representation of a Channel resourceChannel(String name, String description, Vendor vendor, List<ChannelRequirement> channelRequirements, Collection<Stream> streams)Representation of a Channel resource using the current schema version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Optional<Stream>findStreamFor(String groupId, String artifactId)List<ChannelRequirement>getChannelRequirements()StringgetDescription()StringgetName()StringgetSchemaVersion()Collection<Stream>getStreams()VendorgetVendor()StringtoString()
-
-
-
Constructor Detail
-
Channel
public Channel(String name, String description, Vendor vendor, List<ChannelRequirement> channelRequirements, Collection<Stream> streams)
Representation of a Channel resource using the current schema version.
-
Channel
public Channel(String schemaVersion, String name, String description, Vendor vendor, List<ChannelRequirement> channelRequirements, Collection<Stream> streams)
Representation of a Channel resource- Parameters:
schemaVersion- the version of the schema to validate this channel resource - requiredname- the name of the channel - can benulldescription- the description of the channel - can benullvendor- the vendor of the channel - can benullchannelRequirements- the required channels - cane benullstreams- the streams defined by the channel - can benull
-
-
Method Detail
-
getSchemaVersion
public String getSchemaVersion()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getVendor
public Vendor getVendor()
-
getChannelRequirements
public List<ChannelRequirement> getChannelRequirements()
-
getStreams
public Collection<Stream> getStreams()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-