Class OyFallback

  • All Implemented Interfaces:
    Objectionary

    public final class OyFallback
    extends Object
    implements Objectionary
    Objectionary with fallback.
    Since:
    1.0
    • Constructor Detail

      • OyFallback

        public OyFallback​(Objectionary primary,
                          Objectionary secondary)
        Ctor.
        Parameters:
        primary - Primary source.
        secondary - Secondary source.
    • Method Detail

      • get

        public org.cactoos.Input get​(String name)
                              throws IOException
        Description copied from interface: Objectionary
        Resolve object.
        Specified by:
        get in interface Objectionary
        Parameters:
        name - Object name.
        Returns:
        Object code.
        Throws:
        IOException - If fails to fetch.