Class EmptyResource


  • public final class EmptyResource
    extends AbstractInjectableResource
    Default implementation for an empty resource to inject.
    This could be helpful when you don't want to inject a library because are available from another framework.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • EmptyResource

        public EmptyResource​(String name)
        Creates an empty injectable resource with empty content, using the argument as name.
        Parameters:
        name - name of resource as string
      • EmptyResource

        public EmptyResource​(Key key)
        Creates an empty injectable resource with empty content, using the argument as name.
        Parameters:
        key - name of resource as key