RepositoryConfiguration { public static RepositoryConfiguration read( URL url ) throws ParsingException { CheckArg.isNotNull(url, "url"); Document doc = Json.read(url); return new RepositoryConfiguration(doc, withoutExtension(url.getFile())); } RepositoryConfiguration();  RepositoryConfiguration( String name );  RepositoryConfiguration( Document document,
                                    String documentName );  RepositoryConfiguration( String name,
                                    Environment environment );  RepositoryConfiguration( Document document,
                                    String documentName,
                                    Environment environment ); static RepositoryConfiguration read( URL url ); static RepositoryConfiguration read( File file ); static RepositoryConfiguration read( InputStream stream,
                                                String name ); static RepositoryConfiguration read( String resourcePathOrJsonContentString ); String getName(); Document getDocument(); String getJndiName(); Document getPersistenceConfiguration(); long getLockTimeoutMillis(); TransactionManagerLookup getTransactionManagerLookup(); int getWorkspaceCacheSize(); Clustering getClustering(); BinaryStorage getBinaryStorage(); Journaling getJournaling(); InitialContent getInitialContent(); Reindexing getReindexing(); List<String> getNodeTypes(); static String getBuiltInSequencerClassName( String alias ); static String getBuiltInConnectorClassName( String alias ); static String getBuiltInIndexProviderClassName( String alias ); static String getBuiltInTextExtractorClassName( String alias ); boolean isCreatingWorkspacesAllowed(); int getEventBusSize(); String getDefaultWorkspaceName(); Set<String> getPredefinedWorkspaceNames(); Set<String> getAllWorkspaceNames(); Security getSecurity(); MonitoringSystem getMonitoring(); List<Component> getIndexProviders(); Indexes getIndexes(); TextExtraction getTextExtraction(); Sequencing getSequencing(); Federation getFederation(); GarbageCollection getGarbageCollection(); DocumentOptimization getDocumentOptimization(); @Override String toString(); Editor edit(); Problems validate(); Problems validate( Changes changes ); RepositoryConfiguration with( Environment environment ); RepositoryConfiguration withName( String docName ); static final String ROOT_NODE_ID; static final String SYSTEM_WORKSPACE_NAME; static final String DEFAULT_JNDI_PREFIX_OF_NAME; final static Pattern PROJECTION_PATH_EXPRESSION_PATTERN; final static Pattern INDEX_COLUMN_DEFINITIONS_PATTERN; static final String JSON_SCHEMA_URI; static final String JSON_SCHEMA_RESOURCE_PATH; }
@Test public void shouldAcceptSequencerWithNoPathExpression() throws Exception { RepositoryConfiguration config = RepositoryConfiguration.read("{ 'name' : 'Repo', \"sequencing\" : { 'sequencers' : { 'foo' : { 'classname' : 'xsdsequencer' } } } }"); assertValid(config); }