Class JNDIRepository

  • All Implemented Interfaces:
    Repository

    public class JNDIRepository
    extends ProxyRepository
    Proxy for a repository bound in JNDI. The configured repository is looked up from JNDI lazily during each method call. Thus the JNDI entry does not need to exist when this class is instantiated. The JNDI entry can also be replaced with another repository during the lifetime of an instance of this class.
    Since:
    1.4
    • Constructor Detail

      • JNDIRepository

        public JNDIRepository​(javax.naming.Context context,
                              java.lang.String name)
        Creates a proxy for a repository in the given JNDI location.
        Parameters:
        context - JNDI context
        name - JNDI name of the proxied repository