org.apache.directory.shared.ldap.extras.controls.syncrepl_impl
Class SyncDoneValueFactory

java.lang.Object
  extended by org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueFactory
All Implemented Interfaces:
ControlFactory<SyncDoneValue,SyncDoneValueDecorator>

public class SyncDoneValueFactory
extends Object
implements ControlFactory<SyncDoneValue,SyncDoneValueDecorator>

A ControlFactory which creates SyncDoneValue controls.

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

Constructor Summary
SyncDoneValueFactory(LdapCodecService codec)
          Creates a new instance of SyncDoneValueFactory.
 
Method Summary
 String getOid()
          
 SyncDoneValueDecorator newCodecControl()
          Creates and returns a decorated version of the Control.
 SyncDoneValueDecorator newCodecControl(SyncDoneValue control)
          Decorates an existing control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncDoneValueFactory

public SyncDoneValueFactory(LdapCodecService codec)
Creates a new instance of SyncDoneValueFactory.

Parameters:
codec - The codec for this factory.
Method Detail

getOid

public String getOid()

Specified by:
getOid in interface ControlFactory<SyncDoneValue,SyncDoneValueDecorator>
Returns:
The OID of the Control this factory creates.

newCodecControl

public SyncDoneValueDecorator newCodecControl()
Creates and returns a decorated version of the Control.

Specified by:
newCodecControl in interface ControlFactory<SyncDoneValue,SyncDoneValueDecorator>
Returns:
The CodecControl decorated version of the Control.

newCodecControl

public SyncDoneValueDecorator newCodecControl(SyncDoneValue control)
Decorates an existing control. Implementors should check to make sure the supplied Control has not already been decorated to prevent needless decorator nesting.

Specified by:
newCodecControl in interface ControlFactory<SyncDoneValue,SyncDoneValueDecorator>
Parameters:
control - The Control to be decorated.
Returns:
The decorator wrapping the Control.


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