org.ejtools.graph.service
Class GraphServiceProvider

java.lang.Object
  |
  +--java.beans.beancontext.BeanContextChildSupport
        |
        +--java.beans.beancontext.BeanContextSupport
              |
              +--java.beans.beancontext.BeanContextServicesSupport
                    |
                    +--org.ejtools.beans.beancontext.CustomBeanContextServicesSupport
                          |
                          +--org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
                                |
                                +--org.ejtools.graph.service.GraphServiceProvider
All Implemented Interfaces:
java.beans.beancontext.BeanContext, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextServiceProvider, java.beans.beancontext.BeanContextServiceRevokedListener, java.beans.beancontext.BeanContextServices, java.beans.beancontext.BeanContextServicesListener, java.util.Collection, java.beans.DesignMode, java.util.EventListener, GraphConsumerMediator, GraphService, java.beans.PropertyChangeListener, java.io.Serializable, org.ejtools.util.state.Storable, java.beans.VetoableChangeListener, java.beans.Visibility

public class GraphServiceProvider
extends org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
implements GraphService

Version:
$Revision: 1.5 $
Author:
Laurent Etiemble
See Also:
Serialized Form

Field Summary
protected  GraphService service
          Description of the Field
 
Fields inherited from class java.beans.beancontext.BeanContextServicesSupport
bcsListeners, proxy, serializable, services
 
Fields inherited from class java.beans.beancontext.BeanContextSupport
bcmListeners, children, designTime, locale, okToUseGui
 
Fields inherited from class java.beans.beancontext.BeanContextChildSupport
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport
 
Fields inherited from interface java.beans.beancontext.BeanContext
globalHierarchyLock
 
Fields inherited from interface java.beans.DesignMode
PROPERTYNAME
 
Constructor Summary
GraphServiceProvider()
          Constructor for GraphServiceProvider.
 
Method Summary
 void addGraphConsumer(GraphConsumer consumer)
          Adds a feature to the GraphConsumer attribute of the GraphService object
 void addGraphProducer(GraphConsumer consumer, GraphProducer producer)
          Adds a feature to the GraphProducer attribute of the GraphService object
 boolean containsGraphConsumer(GraphConsumer consumer)
          Description of the Method
 java.util.Iterator getCurrentServiceSelectors(java.beans.beancontext.BeanContextServices bcs, java.lang.Class serviceClass)
           
 GraphConsumer[] getGraphConsumers()
          Gets the graphConsumers attribute of the GraphMediator object
 java.lang.Object getService(java.beans.beancontext.BeanContextServices bcs, java.lang.Object requestor, java.lang.Class serviceClass, java.lang.Object serviceSelector)
           
protected  java.lang.Class[] getServiceClass()
           
 void releaseService(java.beans.beancontext.BeanContextServices bcs, java.lang.Object requestor, java.lang.Object service)
           
 void removeGraphConsumer(GraphConsumer consumer)
          Description of the Method
 void removeGraphProducer(GraphProducer producer)
          Description of the Method
 
Methods inherited from class org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
initializeBeanContextResources, releaseBeanContextResources
 
Methods inherited from class org.ejtools.beans.beancontext.CustomBeanContextServicesSupport
accept, clear, getService
 
Methods inherited from class java.beans.beancontext.BeanContextServicesSupport
addBeanContextServicesListener, addService, addService, bcsPreDeserializationHook, bcsPreSerializationHook, childJustRemovedHook, createBCSChild, createBCSSServiceProvider, fireServiceAdded, fireServiceAdded, fireServiceRevoked, fireServiceRevoked, getBeanContextServicesPeer, getChildBeanContextServicesListener, getCurrentServiceClasses, getCurrentServiceSelectors, hasService, initialize, releaseService, removeBeanContextServicesListener, revokeService, serviceAvailable, serviceRevoked
 
Methods inherited from class java.beans.beancontext.BeanContextSupport
add, addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, childDeserializedHook, childJustAddedHook, classEquals, contains, containsAll, containsKey, copyChildren, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, instantiateChild, isDesignTime, isEmpty, isSerializing, iterator, needsGui, okToUseGui, propertyChange, readChildren, remove, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, vetoableChange, writeChildren
 
Methods inherited from class java.beans.beancontext.BeanContextChildSupport
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, validatePendingSetBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.beancontext.BeanContext
addBeanContextMembershipListener, getResource, getResourceAsStream, instantiateChild, removeBeanContextMembershipListener
 
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
 
Methods inherited from interface java.util.Collection
add, addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.beans.DesignMode
isDesignTime, setDesignTime
 
Methods inherited from interface java.beans.Visibility
avoidingGui, dontUseGui, needsGui, okToUseGui
 

Field Detail

service

protected GraphService service
Description of the Field

Constructor Detail

GraphServiceProvider

public GraphServiceProvider()
Constructor for GraphServiceProvider.

Method Detail

addGraphConsumer

public void addGraphConsumer(GraphConsumer consumer)
Description copied from interface: GraphService
Adds a feature to the GraphConsumer attribute of the GraphService object

Specified by:
addGraphConsumer in interface GraphService
Parameters:
consumer - The feature to be added to the GraphConsumer attribute

addGraphProducer

public void addGraphProducer(GraphConsumer consumer,
                             GraphProducer producer)
Description copied from interface: GraphService
Adds a feature to the GraphProducer attribute of the GraphService object

Specified by:
addGraphProducer in interface GraphService
Parameters:
consumer - The feature to be added to the GraphProducer attribute
producer - The feature to be added to the GraphProducer attribute

containsGraphConsumer

public boolean containsGraphConsumer(GraphConsumer consumer)
Description of the Method

Parameters:
consumer - Description of the Parameter
Returns:
Description of the Return Value

getCurrentServiceSelectors

public java.util.Iterator getCurrentServiceSelectors(java.beans.beancontext.BeanContextServices bcs,
                                                     java.lang.Class serviceClass)
Specified by:
getCurrentServiceSelectors in interface java.beans.beancontext.BeanContextServiceProvider
Specified by:
getCurrentServiceSelectors in class org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
Parameters:
bcs - Description of the Parameter
serviceClass - Description of the Parameter
Returns:
The currentServiceSelectors value

getGraphConsumers

public GraphConsumer[] getGraphConsumers()
Description copied from interface: GraphConsumerMediator
Gets the graphConsumers attribute of the GraphMediator object

Specified by:
getGraphConsumers in interface GraphConsumerMediator
Returns:
The graphConsumers value

getService

public java.lang.Object getService(java.beans.beancontext.BeanContextServices bcs,
                                   java.lang.Object requestor,
                                   java.lang.Class serviceClass,
                                   java.lang.Object serviceSelector)
Specified by:
getService in interface java.beans.beancontext.BeanContextServiceProvider
Specified by:
getService in class org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
Parameters:
bcs - Description of the Parameter
requestor - Description of the Parameter
serviceClass - Description of the Parameter
serviceSelector - Description of the Parameter
Returns:
The service value

releaseService

public void releaseService(java.beans.beancontext.BeanContextServices bcs,
                           java.lang.Object requestor,
                           java.lang.Object service)
Specified by:
releaseService in interface java.beans.beancontext.BeanContextServiceProvider
Specified by:
releaseService in class org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
Parameters:
bcs - Description of the Parameter
requestor - Description of the Parameter
service - Description of the Parameter

removeGraphConsumer

public void removeGraphConsumer(GraphConsumer consumer)
Description copied from interface: GraphService
Description of the Method

Specified by:
removeGraphConsumer in interface GraphService
Parameters:
consumer - Description of the Parameter

removeGraphProducer

public void removeGraphProducer(GraphProducer producer)
Description copied from interface: GraphService
Description of the Method

Specified by:
removeGraphProducer in interface GraphService
Parameters:
producer - Description of the Parameter

getServiceClass

protected java.lang.Class[] getServiceClass()
Specified by:
getServiceClass in class org.ejtools.beans.beancontext.CustomBeanContextServiceProvider
Returns:
The serviceClass value


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.