0N/A implements BeanContextServices {
0N/A * @param peer The peer BeanContext we are supplying an implementation for, if null the this object is its own peer
0N/A public BeanContextServicesSupport(BeanContextServices peer, Locale lcle, boolean dTime, boolean visible) {
0N/A * @param peer The peer BeanContext we are supplying an implementation for, if null the this object is its own peer
0N/A * @param peer The peer BeanContext we are supplying an implementation for, if null the this object is its own peer
0N/A * @param peer The peer BeanContext we are supplying an implementation for, if null the this object is its own peer
0N/A super.initialize();
0N/A void addRequestor(Object requestor, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException {
0N/A BeanContextServiceRevokedListener cbcsrl = (BeanContextServiceRevokedListener)requestors.get(requestor);
0N/A throw new TooManyListenersException();
0N/A void verifyRequestor(Object requestor, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException {
0N/A BeanContextServiceRevokedListener cbcsrl = (BeanContextServiceRevokedListener)requestors.get(requestor);
0N/A throw new TooManyListenersException();
0N/A throw new UnsupportedOperationException("existing service reference obtained from different BeanContextServiceProvider not supported");
0N/A return serviceProvider;
0N/A return delegateProvider;
0N/A delegateRefs++;
0N/A serviceRefs++;
0N/A synchronized void usingService(Object requestor, Object service, Class serviceClass, BeanContextServiceProvider bcsp, boolean isDelegated, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException, UnsupportedOperationException {
0N/A BeanContextServiceProvider bcsp = isDelegated ? serviceClassRef.getDelegateProvider() : serviceClassRef.getServiceProvider();
0N/A bcsp.releaseService(BeanContextServicesSupport.this.getBeanContextServicesPeer(), requestor, service);
0N/A BeanContextServiceRevokedEvent bcsre = new BeanContextServiceRevokedEvent(BeanContextServicesSupport.this.getBeanContextServicesPeer(), serviceClass, revokeNow);
0N/A boolean noMoreRefs = false;
0N/A BeanContextServiceRevokedListener listener = (BeanContextServiceRevokedListener)entry.getValue();
0N/A if (serviceRef.getServiceClassRef().equals(serviceClassRef) && isDelegated == serviceRef.isDelegated()) {
0N/A BeanContextServiceProvider bcsp = sref.isDelegated() ? scref.getDelegateProvider() : scref.getServiceProvider();
0N/A bcsp.releaseService(BeanContextServicesSupport.this.getBeanContextServicesPeer(), requestor, service);
0N/A BeanContextServiceRevokedEvent bcsre = new BeanContextServiceRevokedEvent(BeanContextServicesSupport.this.getBeanContextServicesPeer(), serviceClassRef.getServiceClass(), true);
0N/A boolean noMoreRefs = false;
0N/A BeanContextServiceRevokedListener listener = (BeanContextServiceRevokedListener)entry.getValue();
0N/A return serviceProvider;
0N/A protected BCSSServiceProvider createBCSSServiceProvider(Class sc, BeanContextServiceProvider bcsp) {
0N/A synchronized(bcsListeners) {
0N/A synchronized(bcsListeners) {
0N/A protected boolean addService(Class serviceClass, BeanContextServiceProvider bcsp, boolean fireEvent) {
0N/A BeanContextServiceAvailableEvent bcssae = new BeanContextServiceAvailableEvent(getBeanContextServicesPeer(), serviceClass);
0N/A if (c instanceof BeanContextServices) {
0N/A public void revokeService(Class serviceClass, BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow) {
0N/A protected class BCSSProxyServiceProvider implements BeanContextServiceProvider, BeanContextServiceRevokedListener {
0N/A public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector) {
0N/A ((BCSSChild)i.next()).revokeService(bcsre.getServiceClass(), true, bcsre.isCurrentServiceInvalidNow());
0N/A public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException {
0N/A if (bcsc == null) throw new IllegalArgumentException("not a child of this context"); // not a child ...
0N/A return bcsssp != null ? new BCSIterator(bcsssp.getServiceProvider().getCurrentServiceSelectors(getBeanContextServicesPeer(), serviceClass)) : null;
0N/A if (c instanceof BeanContextServices) {
0N/A if (c instanceof BeanContextServices) {
0N/A protected static final BeanContextServicesListener getChildBeanContextServicesListener(Object child) {
0N/A super.releaseBeanContextResources();
0N/A super.initializeBeanContextResources();
0N/A BeanContextServiceAvailableEvent bcssae = new BeanContextServiceAvailableEvent(getBeanContextServicesPeer(), serviceClass);
0N/A BeanContextServiceRevokedEvent bcsre = new BeanContextServiceRevokedEvent(getBeanContextServicesPeer(), serviceClass, revokeNow);
0N/A protected synchronized void bcsPreSerializationHook(ObjectOutputStream oos) throws IOException {
0N/A protected synchronized void bcsPreDeserializationHook(ObjectInputStream ois) throws IOException, ClassNotFoundException {
0N/A private synchronized void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {