{"id":1625,"date":"2012-12-23T07:58:44","date_gmt":"2012-12-23T05:58:44","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/?p=1625"},"modified":"2012-12-23T07:59:02","modified_gmt":"2012-12-23T05:59:02","slug":"darf-man-in-einer-java-ee-anwendung-mit-class-forname-einen-klasse-laden","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2012\/12\/darf-man-in-einer-java-ee-anwendung-mit-class-forname-einen-klasse-laden\/","title":{"rendered":"Darf man in einer Java EE-Anwendung mit Class.forName(&hellip;) einen Klasse laden?"},"content":{"rendered":"<p>Ja, das ist erlaubt. Siehe auch <a title=\"http:\/\/www.oracle.com\/technetwork\/java\/restrictions-142267.html\" href=\"http:\/\/www.oracle.com\/technetwork\/java\/restrictions-142267.html\">http:\/\/www.oracle.com\/technetwork\/java\/restrictions-142267.html<\/a><a href=\"http:\/\/www.oracle.com\/technetwork\/java\/restrictions-142267.html:\">:<\/a><\/p>\n<blockquote>\n<p>Why is there a restriction against using the Java Reflection <acronym>APIs<\/acronym> to obtain declared member information that the Java language security rules would not allow? Doesn&#8217;t Java automatically enforce those rules?      <br \/>Contrary to common belief, most of the Java Reflection <acronym>API<\/acronym> can be used from <acronym>EJB<\/acronym> components. For example, loadClass() and invoke() can both be used by enterprise beans. Only certain reflection methods are forbidden.<\/p>\n<\/blockquote>\n<p>und<\/p>\n<blockquote>\n<p>Why all the restrictions on creating class loaders and redirection of input, output, and error streams?     <br \/>Class loading is allowed, but creating custom loaders is not, for security reasons. These restrictions exist because the <acronym>EJB<\/acronym> container has responsibility for class loading and I\/O control. Allowing the <acronym>EJB<\/acronym> to perform these functions would interfere with proper operation of the Container, and are a security hazard.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Ja, das ist erlaubt. Siehe auch http:\/\/www.oracle.com\/technetwork\/java\/restrictions-142267.html: Why is there a restriction against using the Java Reflection APIs to obtain declared member information that the Java language security rules would not allow? Doesn&#8217;t Java automatically enforce those rules? Contrary to common belief, most of the Java Reflection API can be used from EJB components. For [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9],"tags":[],"class_list":["post-1625","post","type-post","status-publish","format-standard","hentry","category-java-ee"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/1625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=1625"}],"version-history":[{"count":1,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/1625\/revisions"}],"predecessor-version":[{"id":1626,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/1625\/revisions\/1626"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=1625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=1625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=1625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}