Skip to content

Commit

Permalink
Merge pull request #646 from aml-org/W-15039225
Browse files Browse the repository at this point in the history
W-15039225 - Add method to expose current ResourceLoader list
  • Loading branch information
looseale authored Feb 23, 2024
2 parents 6b2c82f + fe0fdef commit 6e78723
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import amf.aml.client.scala.model.document.{Dialect, DialectInstance}
import amf.aml.client.scala.model.domain.SemanticExtension
import amf.aml.internal.parse.plugin.AMLDialectInstanceParsingPlugin
import amf.aml.internal.semantic.SemanticExtensionHelper
import amf.core.client.scala.resource.ResourceLoader
import amf.core.client.scala.transform.TransformationPipeline
import com.github.ghik.silencer.silent

Expand All @@ -12,6 +13,12 @@ import scala.collection.immutable
/** Contains methods to get information about the current state of the configuration */
class AMLConfigurationState private[amf] (protected val configuration: AMLConfiguration) {

/** Get all the ResourceLoaders of the configuration
* @return
* a Seq of [[ResourceLoader]]
*/
def getResourceLoaders(): immutable.Seq[ResourceLoader] = configuration.getResourceLoaders

/** Get all instances of registered dialects
* @return
* a Seq of [[Dialect]]
Expand Down

0 comments on commit 6e78723

Please sign in to comment.