org.openspml.v2.profiles
Class DSMLProfileRegistrar

java.lang.Object
  extended byorg.openspml.v2.profiles.DSMLProfileRegistrar
All Implemented Interfaces:
ObjectFactory.ProfileRegistrar

public class DSMLProfileRegistrar
extends java.lang.Object
implements ObjectFactory.ProfileRegistrar


Constructor Summary
DSMLProfileRegistrar()
           
 
Method Summary
 java.lang.String getProfileId()
          We ask that this be unique - namely as we only allow a registration once.
 void register(ObjectFactory of)
          Generally, this will turn around and add MarshallableCreator(s) to the object factory.
 void unregister(ObjectFactory of)
          Remove the creators from the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSMLProfileRegistrar

public DSMLProfileRegistrar()
Method Detail

getProfileId

public java.lang.String getProfileId()
Description copied from interface: ObjectFactory.ProfileRegistrar
We ask that this be unique - namely as we only allow a registration once. This is the field we use to check if the profile has been registered.

Specified by:
getProfileId in interface ObjectFactory.ProfileRegistrar
Returns:
the profile id - must be unique amongst used registars.

register

public void register(ObjectFactory of)
Description copied from interface: ObjectFactory.ProfileRegistrar
Generally, this will turn around and add MarshallableCreator(s) to the object factory.

Specified by:
register in interface ObjectFactory.ProfileRegistrar
Parameters:
of - This singleton ;-)

unregister

public void unregister(ObjectFactory of)
Description copied from interface: ObjectFactory.ProfileRegistrar
Remove the creators from the factory. At present, this is not called automatically.

Specified by:
unregister in interface ObjectFactory.ProfileRegistrar
Parameters:
of - This singleton ;-)


Copyright © Sun Microsystems, Inc. All Rights Reserved.