|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.hk2.internal.ActiveDescriptorBuilderImpl
public class ActiveDescriptorBuilderImpl
| Constructor Summary | |
|---|---|
ActiveDescriptorBuilderImpl(java.lang.Class<?> implementation)
|
|
| Method Summary | ||
|---|---|---|
ActiveDescriptorBuilder |
andLoadWith(HK2Loader loader)
Call this if this descriptor should be loaded with the given HK2Loader |
|
|
build()
Generates a descriptor that can be used in binding operations |
|
|
buildFactory()
Deprecated. |
|
|
buildProvideMethod()
Generates a descriptor that can be used in binding operations that describes a factorys provide method |
|
ActiveDescriptorBuilder |
has(java.lang.String key,
java.util.List<java.lang.String> values)
An instance of data to be associated with this descriptor |
|
ActiveDescriptorBuilder |
has(java.lang.String key,
java.lang.String value)
An instance of data to be associated with this descriptor |
|
ActiveDescriptorBuilder |
in(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
A scope to be associated with this descriptor object. |
|
ActiveDescriptorBuilder |
localOnly()
This will cause the descriptorVisibility field of the returned descriptor to return LOCAL |
|
ActiveDescriptorBuilder |
named(java.lang.String name)
The name for this descriptor object. |
|
ActiveDescriptorBuilder |
ofRank(int rank)
The rank to be associated with this descriptor. |
|
ActiveDescriptorBuilder |
proxy()
This will cause the isProxiable field of the returned descriptor to return true (it will force this descriptor to use proxies). |
|
ActiveDescriptorBuilder |
proxy(boolean forceProxy)
This will cause the isProxiable field of the returned descriptor to return the given value. |
|
ActiveDescriptorBuilder |
qualifiedBy(java.lang.annotation.Annotation annotation)
A qualifier to be associated with this descriptor object |
|
ActiveDescriptorBuilder |
to(java.lang.reflect.Type contract)
A contract to be associated with this descriptor object. |
|
ActiveDescriptorBuilder |
visibility(DescriptorVisibility visibility)
This will set the descriptorVisibility field of the returned descriptor |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActiveDescriptorBuilderImpl(java.lang.Class<?> implementation)
| Method Detail |
|---|
public ActiveDescriptorBuilder named(java.lang.String name)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
named in interface ActiveDescriptorBuildername - The name to be associated with this Descriptor
java.lang.IllegalArgumentException - if there is more than one name on the predicate
public ActiveDescriptorBuilder to(java.lang.reflect.Type contract)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
to in interface ActiveDescriptorBuildercontract - A class that is annotated with Contract to
be associated with this Descriptor
java.lang.IllegalArgumentException - on failures
public ActiveDescriptorBuilder in(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
in in interface ActiveDescriptorBuilderscope - The class of the scope this descriptor is to have.
java.lang.IllegalArgumentException - If in is called more than once
public ActiveDescriptorBuilder qualifiedBy(java.lang.annotation.Annotation annotation)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
qualifiedBy in interface ActiveDescriptorBuilderannotation - The annotation to be associated with this descriptor
java.lang.IllegalArgumentException - on failures
public ActiveDescriptorBuilder has(java.lang.String key,
java.lang.String value)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
has in interface ActiveDescriptorBuilderkey - The key for the data to be associated with this descriptorvalue - The value this key should take (single value metadata)
java.lang.IllegalArgumentException
public ActiveDescriptorBuilder has(java.lang.String key,
java.util.List<java.lang.String> values)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
has in interface ActiveDescriptorBuilderkey - The key for the data to be associated with this descriptorvalues - The values this key should take (single value metadata)
java.lang.IllegalArgumentExceptionpublic ActiveDescriptorBuilder ofRank(int rank)
ActiveDescriptorBuilder
ofRank in interface ActiveDescriptorBuilderrank - The rank to be associated with this descriptor.
public ActiveDescriptorBuilder proxy()
ActiveDescriptorBuilder
proxy in interface ActiveDescriptorBuilderpublic ActiveDescriptorBuilder proxy(boolean forceProxy)
ActiveDescriptorBuilder
proxy in interface ActiveDescriptorBuilderforceProxy - if true then this descriptor will be proxied,
if false then this descriptor will NOT be proxied
public ActiveDescriptorBuilder andLoadWith(HK2Loader loader)
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
andLoadWith in interface ActiveDescriptorBuilderloader - The loader to use with this descriptor
java.lang.IllegalArgumentException - if the HK2Loader is set non-null more than oncepublic ActiveDescriptorBuilder localOnly()
ActiveDescriptorBuilder
localOnly in interface ActiveDescriptorBuilderpublic ActiveDescriptorBuilder visibility(DescriptorVisibility visibility)
ActiveDescriptorBuilder
visibility in interface ActiveDescriptorBuildervisibility - The non-null visibility that this descriptor should take
public <T> AbstractActiveDescriptor<T> build()
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
build in interface ActiveDescriptorBuilderjava.lang.IllegalArgumentException - if the built descriptor is invalid
@Deprecated
public <T> AbstractActiveDescriptor<T> buildFactory()
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
buildFactory in interface ActiveDescriptorBuilderjava.lang.IllegalArgumentException - if the built descriptor is invalid
public <T> AbstractActiveDescriptor<T> buildProvideMethod()
throws java.lang.IllegalArgumentException
ActiveDescriptorBuilder
buildProvideMethod in interface ActiveDescriptorBuilderjava.lang.IllegalArgumentException - if the built descriptor is invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||