JBoss Community Archive (Read Only)

ModeShape 5

Custom

Description

A mechanism to plug in an external (non ModeShape-owned) binary store implementation which is available on the runtime classpath.

Configuration

JSON

  "storage" : {
        "binaryStorage" : {
            "type"  : "custom",
            "classname" : "org.modeshape.jcr.value.binary.CustomBinaryStoreImpl",
            "classloader" : "jar:http://www.foo.com/bar/baz.jar",
            "attr1" : "value1",
            "attr2" : "value2"
        }
    }

JBoss AS

   <repository>
       <custom-binary-storage classname="org.modeshape.jcr.value.binary.CustomBinaryStoreImpl" module="my_module" attr1="value1" attr2="value2"/>
   </repository>

Attributes

Name

Required

Configuration

Description

classname

yes

JSON and JBoss AS

the fully qualified class name which implements the org.modeshape.jcr.value.binary.BinaryStore interface

classloader

no

JSON

any valid URL style string which will be looked at at runtime when attempting to instantiate the binary store

module

yes

JBoss AS

the name of the JBoss AS module which contains the binary store implementation

plus any number of custom attributes (specific to the binary store implementation) which will be set via reflection at runtime.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:12:57 UTC, last content change 2016-03-23 10:55:05 UTC.