|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.serialize.Registrator
public final class Registrator
Copyright 2004 SAP AG
| Nested Class Summary | |
|---|---|
static class |
Registrator.ShutdownListener
|
| Nested classes/interfaces inherited from interface com.sap.netweaver.bc.serialize.ISerializerRegistrator |
|---|
ISerializerRegistrator.PropertyUsage |
| Field Summary |
|---|
| Fields inherited from interface com.sap.netweaver.bc.serialize.ISerializerRegistrator |
|---|
APPLICATION_PROPERTIES, RESOURCE_PROPERTIES |
| Method Summary | |
|---|---|
void |
claim(IClaimStaker claimstaker)
iterates over all repositories available and calls the claim(IClaimStaker, RID) for each of the repositories
prefixes. |
void |
claim(IClaimStaker claimstaker,
RID prefix)
adds the claims of the given claimstaker to the list of claimed properties. |
void |
deregister(ISerializer serializer)
deregisters a serializer for all repositories it has been registered for. |
boolean |
deregister(ISerializer serializer,
RID prefix)
|
PropertiesClaim |
getClaim(RID rid,
ISerializerRegistrator.PropertyUsage usage)
|
static ISerializerRegistrator |
getInstance()
|
Registrator.ShutdownListener |
getListener()
backdoor-method for hot-reload functionality. |
EntryList |
list(RID rid)
|
void |
notify(ComponentEvent event)
A component was added, reconfigured or will be removed. |
void |
register(ISerializer serializer,
boolean isCore)
|
void |
register(ISerializer serializer,
IRepositoryManager manager,
boolean isCore)
the same method as register(ISerializer, RID, boolean), but
uses the IRepositoryManager.getPrefix() method to calculate
the RID |
void |
register(ISerializer serializer,
RID prefix,
boolean isCore)
expects the RID to start with the RID.PATH_SEPARATOR |
void |
register(ISerializer serializer,
RID prefix,
boolean isCore,
int position)
expects the RID to start with the RID.PATH_SEPARATOR |
RID[] |
registeredRIDs()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ISerializerRegistrator getInstance()
public void register(ISerializer serializer,
RID prefix,
boolean isCore)
throws SerializationException
RID.PATH_SEPARATOR
register in interface ISerializerRegistratorserializer - to register for the given prefix, must not be
nullprefix - the RID to register the transportable for, must not be
nullisCore - flag to tell if the whole serialization process has to be
cancelled, if this serializer fails. Use this flag with care. It
should be only used for services that are relevant for security or
the actual content of the resource
SerializationException
public void register(ISerializer serializer,
IRepositoryManager manager,
boolean isCore)
throws SerializationException
ISerializerRegistratorregister(ISerializer, RID, boolean), but
uses the IRepositoryManager.getPrefix() method to calculate
the RID
register in interface ISerializerRegistratorSerializationException
public void register(ISerializer serializer,
RID prefix,
boolean isCore,
int position)
throws SerializationException
RID.PATH_SEPARATOR
register in interface ISerializerRegistratorserializer - to register for the given prefix, must not be
nullprefix - the RID to register the transportable for, must not be
nullisCore - flag to tell if the whole serialization process has to be
cancelled, if this serializer fails. Use this flag with care. It
should be only used for services that are relevant for security or
the actual content of the resourceposition - an explicit position in the calling sequence for
serializers. Note that an implementation of this interface may not
use this inofrmation. Also, there is no guarantee that other
serializers will be active for the given RID.
SerializationException
public boolean deregister(ISerializer serializer,
RID prefix)
throws SerializationException
deregister in interface ISerializerRegistratorserializer - the transportable to deregister, must not be
nullprefix - the prefix to deregister the transportable for, must not be
null
false, it will return true
otherwise
SerializationExceptionpublic EntryList list(RID rid)
list in interface ISerializerRegistratorrid - the RID to retrieve all transportables for, must not be
null
null. A modification of the
array by the calling class must not modify the registration of
transportables within this registratorpublic RID[] registeredRIDs()
registeredRIDs in interface ISerializerRegistratorRID s that ISerializer instances
have been defined for. Might return an empty array, but never
null.public Registrator.ShutdownListener getListener()
public void register(ISerializer serializer,
boolean isCore)
throws SerializationException
register in interface ISerializerRegistratorserializer - to register for all repositories available, must not be
nullisCore - flag to tell if the whole serialization process has to be
cancelled, if this serializer fails. Use this flag with care. It
should be only used for services that are relevant for security or
the actual content of the resource
SerializationException
public void deregister(ISerializer serializer)
throws SerializationException
ISerializerRegistrator
deregister in interface ISerializerRegistratorserializer - the serializer to deregister, must not be
null
SerializationException
public void claim(IClaimStaker claimstaker,
RID prefix)
ISerializerRegistratorIPropertyName instances by calling the
getClaims(RID rid) method. Note possible race-conditions if
another class added claims in between the two method calls.
claim in interface ISerializerRegistratorclaimstaker - the class that wants to claim exclusive ownership of
certain IPropertyName while serialization of a
resource. Must not be nullprefix - the prefix of the repository to claim ownership of the
properties for.
public void claim(IClaimStaker claimstaker)
throws ResourceException
ISerializerRegistratorclaim(IClaimStaker, RID) for each of the repositories
prefixes.
claim in interface ISerializerRegistratorResourceException - if the ResourceFactory cannot
retrieve the collection of IRepositoryManager
instances.
public PropertiesClaim getClaim(RID rid,
ISerializerRegistrator.PropertyUsage usage)
getClaim in interface ISerializerRegistratorrid - RID of the resource to get the properties claim for. Must not be
null
public void notify(ComponentEvent event)
IComponentListener
notify in interface IComponentListenerevent - the component eventComponentEvent.Type| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||