com.ldodds.slug.framework.config
Class ComponentImpl

java.lang.Object
  extended bycom.ldodds.slug.framework.config.ComponentImpl
All Implemented Interfaces:
Component
Direct Known Subclasses:
AbstractResponseStorer, DelegatingConsumerImpl, RDFConsumer, TaskFilterImpl, URLTaskFilter

public class ComponentImpl
extends java.lang.Object
implements Component

Default implementation of the Component interface. By default the configure method does nothing.

Author:
ccslrd

Field Summary
protected  boolean _configured
           
 
Constructor Summary
ComponentImpl()
           
 
Method Summary
 void configure(Resource self)
          Requests that the component instance configure itself based on properties associated with a given RDF resource.
protected  boolean doConfig(Resource self)
           
 boolean isConfigured()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_configured

protected boolean _configured
Constructor Detail

ComponentImpl

public ComponentImpl()
Method Detail

configure

public void configure(Resource self)
Description copied from interface: Component
Requests that the component instance configure itself based on properties associated with a given RDF resource. Method should only be called once in a Component's life cycle.

Specified by:
configure in interface Component
Parameters:
self - Reference to the Jena Resource from which the Component was instantiated.

isConfigured

public boolean isConfigured()
Specified by:
isConfigured in interface Component

doConfig

protected boolean doConfig(Resource self)