public class ServiceDescriptor extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: Microsoft.Extensions.DependencyInjection.Abstractions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
|
static java.lang.String |
assemblyShortName
Assembly name: Microsoft.Extensions.DependencyInjection.Abstractions
|
static java.lang.String |
className
Qualified class name: Microsoft.Extensions.DependencyInjection.ServiceDescriptor
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ServiceDescriptor() |
ServiceDescriptor(NetType serviceType,
Func_2 factory,
ServiceLifetime lifetime)
Initializes a new instance by invoking the .NET constructor.
|
ServiceDescriptor(NetType serviceType,
NetObject instance)
Initializes a new instance by invoking the .NET constructor.
|
ServiceDescriptor(NetType serviceType,
NetObject serviceKey,
Func_3 factory,
ServiceLifetime lifetime)
Initializes a new instance by invoking the .NET constructor.
|
ServiceDescriptor(NetType serviceType,
NetObject serviceKey,
NetObject instance)
Initializes a new instance by invoking the .NET constructor.
|
ServiceDescriptor(NetType serviceType,
NetObject serviceKey,
NetType implementationType,
ServiceLifetime lifetime)
Initializes a new instance by invoking the .NET constructor.
|
ServiceDescriptor(NetType serviceType,
NetType implementationType,
ServiceLifetime lifetime)
Initializes a new instance by invoking the .NET constructor.
|
ServiceDescriptor(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceDescriptor |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ServiceDescriptor, a cast assert is made to check if types are compatible. |
static ServiceDescriptor |
Describe(NetType serviceType,
Func_2 implementationFactory,
ServiceLifetime lifetime)
Invokes the .NET member Describe.
|
static ServiceDescriptor |
Describe(NetType serviceType,
NetType implementationType,
ServiceLifetime lifetime)
Invokes the .NET member Describe.
|
static ServiceDescriptor |
DescribeKeyed(NetType serviceType,
NetObject serviceKey,
Func_3 implementationFactory,
ServiceLifetime lifetime)
Invokes the .NET member DescribeKeyed.
|
static ServiceDescriptor |
DescribeKeyed(NetType serviceType,
NetObject serviceKey,
NetType implementationType,
ServiceLifetime lifetime)
Invokes the .NET member DescribeKeyed.
|
Func_2 |
getImplementationFactory()
Gets the value of the .NET property ImplementationFactory.
|
NetObject |
getImplementationInstance()
Gets the value of the .NET property ImplementationInstance.
|
NetType |
getImplementationType()
Gets the value of the .NET property ImplementationType.
|
boolean |
getIsKeyedService()
Gets the value of the .NET property IsKeyedService.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
Func_3 |
getKeyedImplementationFactory()
Gets the value of the .NET property KeyedImplementationFactory.
|
NetObject |
getKeyedImplementationInstance()
Gets the value of the .NET property KeyedImplementationInstance.
|
NetType |
getKeyedImplementationType()
Gets the value of the .NET property KeyedImplementationType.
|
ServiceLifetime |
getLifetime()
Gets the value of the .NET property Lifetime.
|
NetObject |
getServiceKey()
Gets the value of the .NET property ServiceKey.
|
NetType |
getServiceType()
Gets the value of the .NET property ServiceType.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
KeyedScoped(NetObject serviceKey)
Invokes the .NET member KeyedScoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
KeyedScoped(NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member KeyedScoped.
|
static ServiceDescriptor |
KeyedScoped(NetType service,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member KeyedScoped.
|
static ServiceDescriptor |
KeyedScoped(NetType service,
NetObject serviceKey,
NetType implementationType)
Invokes the .NET member KeyedScoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
KeyedSingleton(NetObject serviceKey)
Invokes the .NET member KeyedSingleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
KeyedSingleton(NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member KeyedSingleton.
|
static <TService extends IJCOBridgeReflected> |
KeyedSingleton(NetObject serviceKey,
TService implementationInstance)
Invokes the .NET member KeyedSingleton.
|
static ServiceDescriptor |
KeyedSingleton(NetType serviceType,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member KeyedSingleton.
|
static ServiceDescriptor |
KeyedSingleton(NetType serviceType,
NetObject serviceKey,
NetObject implementationInstance)
Invokes the .NET member KeyedSingleton.
|
static ServiceDescriptor |
KeyedSingleton(NetType service,
NetObject serviceKey,
NetType implementationType)
Invokes the .NET member KeyedSingleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
KeyedTransient(NetObject serviceKey)
Invokes the .NET member KeyedTransient.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
KeyedTransient(NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member KeyedTransient.
|
static ServiceDescriptor |
KeyedTransient(NetType service,
NetObject serviceKey,
Func_3 implementationFactory)
Invokes the .NET member KeyedTransient.
|
static ServiceDescriptor |
KeyedTransient(NetType service,
NetObject serviceKey,
NetType implementationType)
Invokes the .NET member KeyedTransient.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
Scoped()
Invokes the .NET member Scoped.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
Scoped(Func_2 implementationFactory)
Invokes the .NET member Scoped.
|
static ServiceDescriptor |
Scoped(NetType service,
Func_2 implementationFactory)
Invokes the .NET member Scoped.
|
static ServiceDescriptor |
Scoped(NetType service,
NetType implementationType)
Invokes the .NET member Scoped.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
Singleton()
Invokes the .NET member Singleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
Singleton(Func_2 implementationFactory)
Invokes the .NET member Singleton.
|
static ServiceDescriptor |
Singleton(NetType serviceType,
Func_2 implementationFactory)
Invokes the .NET member Singleton.
|
static ServiceDescriptor |
Singleton(NetType serviceType,
NetObject implementationInstance)
Invokes the .NET member Singleton.
|
static ServiceDescriptor |
Singleton(NetType service,
NetType implementationType)
Invokes the .NET member Singleton.
|
static <TService extends IJCOBridgeReflected> |
Singleton(TService implementationInstance)
Invokes the .NET member Singleton.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
Transient()
Invokes the .NET member Transient.
|
static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> |
Transient(Func_2 implementationFactory)
Invokes the .NET member Transient.
|
static ServiceDescriptor |
Transient(NetType service,
Func_2 implementationFactory)
Invokes the .NET member Transient.
|
static ServiceDescriptor |
Transient(NetType service,
NetType implementationType)
Invokes the .NET member Transient.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ServiceDescriptor()
throws java.lang.Throwable
java.lang.Throwablepublic ServiceDescriptor(NetType serviceType, Func_2 factory, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypefactory - the argument of type Func_2lifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ServiceDescriptor(NetType serviceType, NetObject instance) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
serviceType - the argument of type NetTypeinstance - the argument of type NetObjectjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ServiceDescriptor(NetType serviceType, NetObject serviceKey, Func_3 factory, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectfactory - the argument of type Func_3lifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ServiceDescriptor(NetType serviceType, NetObject serviceKey, NetObject instance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectinstance - the argument of type NetObjectjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ServiceDescriptor(NetType serviceType, NetObject serviceKey, NetType implementationType, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypelifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ServiceDescriptor(NetType serviceType, NetType implementationType, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
serviceType - the argument of type NetTypeimplementationType - the argument of type NetTypelifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ServiceDescriptor(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static ServiceDescriptor cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ServiceDescriptor, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedServiceDescriptor instancejava.lang.Throwable - in case of error during cast operationpublic static ServiceDescriptor Describe(NetType serviceType, Func_2 implementationFactory, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
serviceType - the argument of type NetTypeimplementationFactory - the argument of type Func_2lifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Describe(NetType serviceType, NetType implementationType, ServiceLifetime lifetime) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
serviceType - the argument of type NetTypeimplementationType - the argument of type NetTypelifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor DescribeKeyed(NetType serviceType, NetObject serviceKey, Func_3 implementationFactory, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3lifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor DescribeKeyed(NetType serviceType, NetObject serviceKey, NetType implementationType, ServiceLifetime lifetime) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypelifetime - the argument of type ServiceLifetimejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Func_2 getImplementationFactory() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject getImplementationInstance() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType getImplementationType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsKeyedService()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic Func_3 getKeyedImplementationFactory() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic NetObject getKeyedImplementationInstance() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic NetType getKeyedImplementationType() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic ServiceLifetime getLifetime() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject getServiceKey() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetType getServiceType() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor KeyedScoped(NetObject serviceKey) throws java.lang.Throwable, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor KeyedScoped(NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedScoped(NetType service, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedScoped(NetType service, NetObject serviceKey, NetType implementationType) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException
service - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor KeyedSingleton(NetObject serviceKey) throws java.lang.Throwable, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor KeyedSingleton(NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected> ServiceDescriptor KeyedSingleton(NetObject serviceKey, TService implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceserviceKey - the argument of type NetObjectimplementationInstance - the argument of type TServicejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedSingleton(NetType serviceType, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedSingleton(NetType serviceType, NetObject serviceKey, NetObject implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationInstance - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedSingleton(NetType service, NetObject serviceKey, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor KeyedTransient(NetObject serviceKey) throws java.lang.Throwable, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationserviceKey - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor KeyedTransient(NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedTransient(NetType service, NetObject serviceKey, Func_3 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationFactory - the argument of type Func_3java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor KeyedTransient(NetType service, NetObject serviceKey, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeserviceKey - the argument of type NetObjectimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor Scoped() throws java.lang.Throwable, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor Scoped(Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Scoped(NetType service, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Scoped(NetType service, NetType implementationType) throws java.lang.Throwable, ArgumentNullException
service - the argument of type NetTypeimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor Singleton() throws java.lang.Throwable, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor Singleton(Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Singleton(NetType serviceType, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Singleton(NetType serviceType, NetObject implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
serviceType - the argument of type NetTypeimplementationInstance - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Singleton(NetType service, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected> ServiceDescriptor Singleton(TService implementationInstance) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceimplementationInstance - the argument of type TServicejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor Transient() throws java.lang.Throwable, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic static <TService extends IJCOBridgeReflected,TImplementation extends IJCOBridgeReflected> ServiceDescriptor Transient(Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
TService - the type of the generic argument TServiceTImplementation - the type of the generic argument TImplementationimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Transient(NetType service, Func_2 implementationFactory) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeimplementationFactory - the argument of type Func_2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ServiceDescriptor Transient(NetType service, NetType implementationType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException
service - the argument of type NetTypeimplementationType - the argument of type NetTypejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises it