protected void redefineServices() { redefineServicesWithClass( Registry.instance().getCommonServiceInit() ); }
/** * Sets the location of the registry file. Initializes singleton registry. * * @param registryURL */ public static void setLocation( URL registryURL ) { setLocation( registryURL, DefaultCommonsServiceKernelInit.class.getName() ); } public static void setLocation( URL registryURL, String strCommonServicesInitDefault )
public static void setLocation( URL registryURL, String strCommonServicesInitDefault ) { g_instance = new Registry( registryURL, strCommonServicesInitDefault ); fireLocationChanged(); }
public void updateClasspath( List<String> classpath ) if( new HashSet( classpath ).equals( new HashSet( getClasspathEntries() ) ) ) try doc = getDocument( _registerUrl ); Node classpathEntries = getTag( doc, TAG_CLASSPATH ); if( classpathEntries == null ) Node ser = getTag( doc, TAG_SERIALIZATION ); classpathEntries = doc.createElement( TAG_CLASSPATH ); ser.appendChild( classpathEntries ); classpathList.add( strPath ); instance()._classpathEntries = classpathList;
Document doc = getDocument( registrURL ); Node commonService = getTag( doc, COMMON_SERVICE_INIT ); String kernelInit = null; if( commonService != null ) if( kernelInit != null ) setCommonServiceInit( kernelInit ); String allowDeprecatedRefs = getTag( doc, TAG_ALLOW_DEPRECATED_REFERENCES ) == null ? null : getTag( doc, TAG_ALLOW_DEPRECATED_REFERENCES ).getTextContent(); if( allowDeprecatedRefs != null ) setAllowDeprecatedReferences( Boolean.valueOf( allowDeprecatedRefs ) ); String allowEntityQueries = getTag( doc, TAG_ALLOW_ENTITY_QUERIES ) == null ? null : getTag( doc, TAG_ALLOW_ENTITY_QUERIES ).getTextContent(); if( allowEntityQueries != null ) setAllowEntityQueires( Boolean.valueOf( allowEntityQueries ) ); Node typeLoaders = getTag( doc, TAG_TYPELOADERS ); if( typeLoaders != null ) Node classpathEntries = getTag( doc, TAG_CLASSPATH ); if( classpathEntries != null )
Registry.setLocation( possibleReg.toURI().toURL() ); ArrayList<File> files = new ArrayList<File>(); List<String> entries = Registry.instance().getClasspathEntries(); if( entries != null ) Registry.setLocation( Gosu.class.getResource( "shell/registry.xml" ) ); return Collections.emptyList();
List<TypeLoaderSpec> typeLoaderList = Registry.instance().getAdditionalTypeLoaders(); for (TypeLoaderSpec typeLoaderSpec : typeLoaderList) { ITypeLoader typeLoader = typeLoaderSpec.createTypeLoader(this.getExecutionEnvironment());
CommonServices.getKernel().redefineService_Privileged( IEntityAccess.class, access ); CommonServices.getKernel().redefineService_Privileged( ICoercionManager.class, coercionManager ); Registry.instance().setAllowEntityQueires( true );
CommonServices.getEntityAccess().getPrimaryEntityClass( intrType ).getName() ); if( !Registry.instance().isAllowEntityQueires() )
private CommonServices() { Registry.addLocationListener( new ChangeListener() { public void stateChanged( ChangeEvent e ) { _kernel.resetKernel(); } } ); }
public static void setLocation(String kernelInitClass) { g_instance = new Registry( kernelInitClass ); }
public void updateClasspath( List<String> classpath ) if( new HashSet( classpath ).equals( new HashSet( getClasspathEntries() ) ) ) try doc = getDocument( _registerUrl ); Node classpathEntries = getTag( doc, TAG_CLASSPATH ); if( classpathEntries == null ) Node ser = getTag( doc, TAG_SERIALIZATION ); classpathEntries = doc.createElement( TAG_CLASSPATH ); ser.appendChild( classpathEntries ); classpathList.add( strPath ); instance()._classpathEntries = classpathList;
Document doc = getDocument( registrURL ); Node commonService = getTag( doc, COMMON_SERVICE_INIT ); String kernelInit = null; if( commonService != null ) if( kernelInit != null ) setCommonServiceInit( kernelInit ); String allowDeprecatedRefs = getTag( doc, TAG_ALLOW_DEPRECATED_REFERENCES ) == null ? null : getTag( doc, TAG_ALLOW_DEPRECATED_REFERENCES ).getTextContent(); if( allowDeprecatedRefs != null ) setAllowDeprecatedReferences( Boolean.valueOf( allowDeprecatedRefs ) ); String allowEntityQueries = getTag( doc, TAG_ALLOW_ENTITY_QUERIES ) == null ? null : getTag( doc, TAG_ALLOW_ENTITY_QUERIES ).getTextContent(); if( allowEntityQueries != null ) setAllowEntityQueires( Boolean.valueOf( allowEntityQueries ) ); Node typeLoaders = getTag( doc, TAG_TYPELOADERS ); if( typeLoaders != null ) Node classpathEntries = getTag( doc, TAG_CLASSPATH ); if( classpathEntries != null )
List<TypeLoaderSpec> typeLoaderList = Registry.instance().getAdditionalTypeLoaders(); for (TypeLoaderSpec typeLoaderSpec : typeLoaderList) { ITypeLoader typeLoader = typeLoaderSpec.createTypeLoader(this.getExecutionEnvironment());
private CommonServices() { Registry.addLocationListener( new ChangeListener() { public void stateChanged( ChangeEvent e ) { _kernel.resetKernel(); } } ); }
public static void setLocation(String kernelInitClass) { g_instance = new Registry( kernelInitClass ); }
/** * Sets the location of the registry file. Initializes singleton registry. * * @param registryURL */ public static void setLocation( URL registryURL ) { setLocation( registryURL, DefaultCommonsServiceKernelInit.class.getName() ); } public static void setLocation( URL registryURL, String strCommonServicesInitDefault )
protected void redefineServices() { redefineServicesWithClass( Registry.instance().getCommonServiceInit() ); }
public static void setLocation( URL registryURL, String strCommonServicesInitDefault ) { g_instance = new Registry( registryURL, strCommonServicesInitDefault ); fireLocationChanged(); }
/** /** * Initialize with defaults. * Guidewire applications should NEVER call this. */ public static void initDefaults() { try { Registry.setLocation( Registry.class.getResource( "/gw/config/default.xml" ) ); } catch( Throwable t ) { t.printStackTrace(); } }