java.beans.beancontext.BeanContextServiceProvider Java Examples
The following examples show how to use
java.beans.beancontext.BeanContextServiceProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeanContextServices.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #2
Source File: BeanContextServices.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #3
Source File: BeanContextServices.java From Java8CN with Apache License 2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #4
Source File: BeanContextServices.java From Java8CN with Apache License 2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #5
Source File: BeanContextServices.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #6
Source File: BeanContextServices.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #7
Source File: BeanContextServices.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #8
Source File: BeanContextServices.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #9
Source File: BeanContextServices.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #10
Source File: BeanContextServices.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #11
Source File: BeanContextServices.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #12
Source File: BeanContextServices.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #13
Source File: BeanContextServices.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #14
Source File: BeanContextServices.java From jdk8u-jdk with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #15
Source File: BeanContextServices.java From jdk-1.7-annotated with Apache License 2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #16
Source File: BeanContextServices.java From jdk-1.7-annotated with Apache License 2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #17
Source File: BeanContextServices.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #18
Source File: BeanContextServices.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #19
Source File: BeanContextServices.java From JDKSourceCode1.8 with MIT License | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #20
Source File: BeanContextServices.java From jdk1.8-source-analysis with Apache License 2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #21
Source File: BeanContextServices.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #22
Source File: BeanContextServices.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #23
Source File: BeanContextServices.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #24
Source File: BeanContextServices.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #25
Source File: BeanContextServices.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #26
Source File: BeanContextServices.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);
Example #27
Source File: BeanContextServices.java From JDKSourceCode1.8 with MIT License | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #28
Source File: BeanContextServices.java From jdk1.8-source-analysis with Apache License 2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #29
Source File: BeanContextServices.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Adds a service to this BeanContext. * <code>BeanContextServiceProvider</code>s call this method * to register a particular service with this context. * If the service has not previously been added, the * <code>BeanContextServices</code> associates * the service with the <code>BeanContextServiceProvider</code> and * fires a <code>BeanContextServiceAvailableEvent</code> to all * currently registered <code>BeanContextServicesListeners</code>. * The method then returns <code>true</code>, indicating that * the addition of the service was successful. * If the given service has already been added, this method * simply returns <code>false</code>. * @param serviceClass the service to add * @param serviceProvider the <code>BeanContextServiceProvider</code> * associated with the service * @return true if the service was successful added, false otherwise */ boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider);
Example #30
Source File: BeanContextServices.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * BeanContextServiceProviders wishing to remove * a currently registered service from this context * may do so via invocation of this method. Upon revocation of * the service, the <code>BeanContextServices</code> fires a * <code>BeanContextServiceRevokedEvent</code> to its * list of currently registered * <code>BeanContextServiceRevokedListeners</code> and * <code>BeanContextServicesListeners</code>. * @param serviceClass the service to revoke from this BeanContextServices * @param serviceProvider the BeanContextServiceProvider associated with * this particular service that is being revoked * @param revokeCurrentServicesNow a value of <code>true</code> * indicates an exceptional circumstance where the * <code>BeanContextServiceProvider</code> or * <code>BeanContextServices</code> wishes to immediately * terminate service to all currently outstanding references * to the specified service. */ void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow);