org.glassfish.hk2.internal
Class FactoryDescriptorsImpl
java.lang.Object
org.glassfish.hk2.internal.FactoryDescriptorsImpl
- All Implemented Interfaces:
- FactoryDescriptors
public class FactoryDescriptorsImpl
- extends Object
- implements FactoryDescriptors
- Author:
- jwells
getFactoryAsAService
public Descriptor getFactoryAsAService()
- Description copied from interface:
FactoryDescriptors
- This returns the factory as a service itself. The advertised
contracts must contain the implementation class of the factory and
the
Factory
. The descriptor type must be DescriptorType.CLASS
since this descriptor is describing the factory itself.
- Specified by:
getFactoryAsAService
in interface FactoryDescriptors
- Returns:
- The factory as a service itself
getFactoryAsAFactory
public Descriptor getFactoryAsAFactory()
- Description copied from interface:
FactoryDescriptors
- This returns the factory as a factory for some other type. The
implementation class should contain the implementation class
of the factory service. If the implementation class returned from
this does not match the implementation class returned from getFactoryAsAService
an error will occur. The contracts, name and qualifiers should represent
the type returned from the provide method of the factory. The descriptor
type must be
DescriptorType
.FACTORY since this descriptor is
describing the factory as a factory, not as a service.
- Specified by:
getFactoryAsAFactory
in interface FactoryDescriptors
- Returns:
- The factory descriptor as a factory
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Oracle Corporation. All Rights Reserved.