Class ServiceProviderAsset

  • All Implemented Interfaces:
    Asset

    public class ServiceProviderAsset
    extends java.lang.Object
    implements Asset
    ServiceProviderAsset
    Version:
    $Revision: $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] providerImpls  
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceProviderAsset​(java.lang.Class<?>... providerImpls)
      Creates a newline separated text file off the providerImpls class names.
      ServiceProviderAsset​(java.lang.String... providerImpls)
      Creates a newline separated text file off the providerImpls class names.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream openStream()
      Get a input stream for the resource content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • providerImpls

        private final java.lang.String[] providerImpls
    • Constructor Detail

      • ServiceProviderAsset

        public ServiceProviderAsset​(java.lang.Class<?>... providerImpls)
        Creates a newline separated text file off the providerImpls class names.
        Parameters:
        providerImpls - The Classes to use
        Throws:
        java.lang.IllegalArgumentException - if providerImpls is null or contain null values
      • ServiceProviderAsset

        public ServiceProviderAsset​(java.lang.String... providerImpls)
        Creates a newline separated text file off the providerImpls class names.
        Parameters:
        providerImpls - The class names to use
        Throws:
        java.lang.IllegalArgumentException - if providerImpls is null or contain null values
    • Method Detail

      • openStream

        public java.io.InputStream openStream()
        Description copied from interface: Asset
        Get a input stream for the resource content. The caller is responsible for closing the stream.
        Specified by:
        openStream in interface Asset
        Returns:
        A new open InputStream for each call