org.apache.hivemind.parse
Class CreateInstanceDescriptor

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.parse.CreateInstanceDescriptor
All Implemented Interfaces:
Locatable, LocationHolder, InstanceBuilder

public final class CreateInstanceDescriptor
extends BaseLocatable
implements InstanceBuilder

Descriptor for the <create-instance< element, used to create a core service implementation from a class name.

Author:
Howard Lewis Ship

Constructor Summary
CreateInstanceDescriptor()
           
 
Method Summary
 ServiceImplementationConstructor createConstructor(ServicePoint point, Module contributingModule)
          Returns an instance of ServiceImplementationConstructor that will ultimately create the service implementation instance.
 java.lang.String getInstanceClassName()
           
 java.lang.String getServiceModel()
          Returns the name of a service model appropriate for the instance that will be created by the ServiceImplementationConstructor.
 void setInstanceClassName(java.lang.String string)
           
 void setServiceModel(java.lang.String serviceModel)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

CreateInstanceDescriptor

public CreateInstanceDescriptor()
Method Detail

getInstanceClassName

public java.lang.String getInstanceClassName()

setInstanceClassName

public void setInstanceClassName(java.lang.String string)

createConstructor

public ServiceImplementationConstructor createConstructor(ServicePoint point,
                                                          Module contributingModule)
Description copied from interface: InstanceBuilder
Returns an instance of ServiceImplementationConstructor that will ultimately create the service implementation instance.

Specified by:
createConstructor in interface InstanceBuilder

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getServiceModel

public java.lang.String getServiceModel()
Description copied from interface: InstanceBuilder
Returns the name of a service model appropriate for the instance that will be created by the ServiceImplementationConstructor.

Specified by:
getServiceModel in interface InstanceBuilder

setServiceModel

public void setServiceModel(java.lang.String serviceModel)