org.apache.directory.server.core.annotations
Annotation Type CreatePartition


@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface CreatePartition

An annotation for the Partition creation. A partition is defined by a name and a suffix, plus some other characteristics. Here is an example :

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Required Element Summary
 java.lang.String name
          The partition name
 java.lang.String suffix
          The partition suffix
 
Optional Element Summary
 int cacheSize
          The cache size
 ContextEntry contextEntry
          The context entry
 CreateIndex[] indexes
          The associated indexes
 java.lang.Class<? extends Partition> type
          The partition implementation class
 

Element Detail

name

public abstract java.lang.String name
The partition name


suffix

public abstract java.lang.String suffix
The partition suffix

type

public abstract java.lang.Class<? extends Partition> type
The partition implementation class

Default:
org.apache.directory.server.core.partition.Partition.class

contextEntry

public abstract ContextEntry contextEntry
The context entry

Default:
@org.apache.directory.server.core.annotations.ContextEntry(entryLdif="")

indexes

public abstract CreateIndex[] indexes
The associated indexes

Default:
{}

cacheSize

public abstract int cacheSize
The cache size

Default:
1000


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.