org.eclipse.net4j.util.factory
Class FactoryDescriptor

java.lang.Object
  extended by org.eclipse.net4j.util.factory.Factory
      extended by org.eclipse.net4j.util.factory.FactoryDescriptor
All Implemented Interfaces:
IFactory

public class FactoryDescriptor
extends Factory

A factory that delegates to an extension registry contribution.

Example contribution:

    <extension
          point="org.eclipse.net4j.util.factories">
       <factory
             class="org.eclipse.net4j.util.concurrent.TimerLifecycle$DaemonFactory"
             productGroup="org.eclipse.net4j.util.timers"
             type="daemon"/>
    </extension>
 

No Extend
This class is not intended to be subclassed by clients.

Constructor Summary
FactoryDescriptor(IConfigurationElement configurationElement)
           
 
Method Summary
 Object create(String description)
           
 IFactory createFactory()
           
 IConfigurationElement getConfigurationElement()
           
 String getDescriptionFor(Object product)
           
 
Methods inherited from class org.eclipse.net4j.util.factory.Factory
getKey, getProductGroup, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactoryDescriptor

public FactoryDescriptor(IConfigurationElement configurationElement)
Method Detail

getConfigurationElement

public IConfigurationElement getConfigurationElement()

createFactory

public IFactory createFactory()

create

public Object create(String description)

getDescriptionFor

public String getDescriptionFor(Object product)
Specified by:
getDescriptionFor in interface IFactory
Overrides:
getDescriptionFor in class Factory


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.