public class ServiceGroupContext extends AbstractContext implements Externalizable, SafeSerializable
COPY_PROPERTIES, lastTouchedTime, parent, properties
Constructor and Description |
---|
ServiceGroupContext() |
ServiceGroupContext(ConfigurationContext parent,
AxisServiceGroup axisServiceGroup) |
Modifier and Type | Method and Description |
---|---|
void |
activate(ConfigurationContext cc)
Some parts of the object restored from the
readExternal deserialization work cannot be completed until
we have a configurationContext.
|
void |
addServiceContext(ServiceContext srvctx)
Adds the specified service context object to the
lists of service contexts for this service group
context.
|
ServiceContext |
findServiceContext(AxisService axisSrv)
Finds the service context object that corresponds
to the specified AxisService from the list
of service contexts for this service group
context.
|
ServiceContext |
findServiceContext(String name)
Finds the service context object that corresponds
to the specified name from the list
of service contexts for this service group
context.
|
AxisServiceGroup |
getDescription() |
String |
getId() |
ConfigurationContext |
getRootContext() |
ServiceContext |
getServiceContext(AxisService service)
Gets a service context.
|
Iterator<ServiceContext> |
getServiceContexts() |
boolean |
isEquivalent(ServiceGroupContext ctx)
Compares key parts of the state from the current instance of
this class with the specified instance to see if they are
equivalent.
|
void |
putContextProperties(ServiceGroupContext context)
This will do a copy of the properties from this context object
to the properties of the specified context object.
|
void |
readExternal(ObjectInput inObject)
Restore the contents of the object that was previously saved.
|
void |
setId(String id) |
void |
writeExternal(ObjectOutput o)
Save the contents of this object.
|
clearPropertyDifferences, flush, getLastTouchedTime, getLocalProperty, getParent, getProperties, getProperty, getPropertyDifferences, getPropertyNames, getPropertyNonReplicable, isAncestor, mergeProperties, removeProperty, removePropertyNonReplicable, setLastTouchedTime, setNonReplicableProperty, setParent, setProperties, setProperty, touch
public ServiceGroupContext()
public ServiceGroupContext(ConfigurationContext parent, AxisServiceGroup axisServiceGroup)
public AxisServiceGroup getDescription()
public String getId()
public ServiceContext getServiceContext(AxisService service) throws AxisFault
service
- the AxisService for which to get a contextAxisFault
- if something goes wrongpublic Iterator<ServiceContext> getServiceContexts()
public void setId(String id)
public void addServiceContext(ServiceContext srvctx)
srvctx
- The ServiceContext object to addpublic ServiceContext findServiceContext(String name)
name
- The name associated with the ServiceContextpublic ServiceContext findServiceContext(AxisService axisSrv)
axisSrv
- the AxisService whose context we're looking forpublic void putContextProperties(ServiceGroupContext context)
context
- The ServiceGroupContext object to hold the merged propertiespublic void writeExternal(ObjectOutput o) throws IOException
writeExternal
in interface Externalizable
out
- The stream to write the object contents toIOException
public void readExternal(ObjectInput inObject) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- The stream to read the object contents fromIOException
ClassNotFoundException
public void activate(ConfigurationContext cc)
cc
- the active ConfigurationContextpublic boolean isEquivalent(ServiceGroupContext ctx)
ctx
- The object to compare withpublic ConfigurationContext getRootContext()
getRootContext
in class AbstractContext
Copyright © 2004-2012 Apache Software Foundation. All Rights Reserved.