net.dpml.metro
Interface ComponentModel

All Superinterfaces:
Model, Remote

public interface ComponentModel
extends Model

The ComponentModel interface defines the remotely accessible aspects of a component configuration.

Version:
1.0.4
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from interface net.dpml.component.Model
PARTITION_SEPARATOR
 
Method Summary
 CategoryDirective[] getCategoryDirectives()
          Return the component logging categories.
 Classpath getClasspath()
          Return the component classpath directive.
 CollectionPolicy getCollectionPolicy()
          Return the current component collection policy.
 ContextModel getContextModel()
          Return the current context model.
 String getImplementationClassName()
          Return the component implementation class name.
 LifestylePolicy getLifestylePolicy()
          Return the component lifestyle policy.
 String getName()
          Return the component name.
 PartReference[] getPartReferences()
          Return the default set of internal part directives.
 boolean isThreadSafe()
          Return the component thread-safe status.
 
Methods inherited from interface net.dpml.component.Model
addModelListener, getActivationPolicy, getContextPath, removeModelListener, setActivationPolicy
 

Method Detail

getContextModel

ContextModel getContextModel()
                             throws RemoteException
Return the current context model.

Returns:
the context model
Throws:
RemoteException - if a remote exception occurs

getName

String getName()
               throws RemoteException
Return the component name.

Returns:
the name
Throws:
RemoteException - if a remote exception occurs

getImplementationClassName

String getImplementationClassName()
                                  throws RemoteException
Return the component implementation class name.

Returns:
the classname of the implementation
Throws:
RemoteException - if a remote exception occurs

getClasspath

Classpath getClasspath()
                       throws RemoteException
Return the component classpath directive.

Returns:
the classpath directive for the component
Throws:
RemoteException - if a remote exception occurs

isThreadSafe

boolean isThreadSafe()
                     throws RemoteException
Return the component thread-safe status.

Returns:
the threadsafe status
Throws:
RemoteException - if a remote exception occurs

getLifestylePolicy

LifestylePolicy getLifestylePolicy()
                                   throws RemoteException
Return the component lifestyle policy.

Returns:
the lifestyle policy value
Throws:
RemoteException - if a remote exception occurs

getCollectionPolicy

CollectionPolicy getCollectionPolicy()
                                     throws RemoteException
Return the current component collection policy. If null, the component type collection policy will be returned.

Returns:
a HARD, WEAK, SOFT or SYSTEM
Throws:
RemoteException - if a remote exception occurs

getCategoryDirectives

CategoryDirective[] getCategoryDirectives()
                                          throws RemoteException
Return the component logging categories.

Returns:
the categories
Throws:
RemoteException - if a remote exception occurs

getPartReferences

PartReference[] getPartReferences()
                                  throws RemoteException
Return the default set of internal part directives.

Returns:
the internal part directive array
Throws:
RemoteException - if a remote exception occurs