JXTA

net.jxta.impl.protocol
Class GroupConfig.Instantiator

java.lang.Object
  extended by net.jxta.impl.protocol.GroupConfig.Instantiator
All Implemented Interfaces:
AdvertisementFactory.Instantiator
Enclosing class:
GroupConfig

public static final class GroupConfig.Instantiator
extends Object
implements AdvertisementFactory.Instantiator

Instantiator for GroupConfig


Constructor Summary
GroupConfig.Instantiator()
           
 
Method Summary
 String getAdvertisementType()
          Returns the identifying type of this Advertisement.
 Advertisement newInstance()
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 Advertisement newInstance(Element root)
          Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupConfig.Instantiator

public GroupConfig.Instantiator()
Method Detail

getAdvertisementType

public String getAdvertisementType()
Returns the identifying type of this Advertisement.

Specified by:
getAdvertisementType in interface AdvertisementFactory.Instantiator
Returns:
String the type of advertisement

newInstance

public Advertisement newInstance()
Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.

Specified by:
newInstance in interface AdvertisementFactory.Instantiator
Returns:
The instance of Advertisement.

newInstance

public Advertisement newInstance(Element root)
Constructs an instance of Advertisement matching the type specified by the advertisementType parameter.

Specified by:
newInstance in interface AdvertisementFactory.Instantiator
Parameters:
root - Specifies a portion of a @link StructuredDocument} which will be converted into an Advertisement.
Returns:
The instance of Advertisement.

JXSE